You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/docs/angular-docs/src/routes/components+/tag+/_tag.mdx
+13-10Lines changed: 13 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,10 +24,7 @@ import {TagDirective} from "@qualcomm-ui/angular/tag"
24
24
### Icons
25
25
26
26
::: terms
27
-
leading icon
28
-
trailing icon
29
-
prefix
30
-
suffix
27
+
leading icon, trailing icon, prefix, suffix
31
28
:::
32
29
33
30
Icons are supplied using the [startIcon](./#startIcon) and [endIcon](./#endIcon) properties.
@@ -37,9 +34,7 @@ Icons are supplied using the [startIcon](./#startIcon) and [endIcon](./#endIcon)
37
34
### Variants
38
35
39
36
::: terms
40
-
clickable
41
-
removable
42
-
closable
37
+
clickable, removable, closable
43
38
:::
44
39
45
40
Choose from three [variants](./#variant): `link`, `selectable` and `dismissable`.
@@ -49,6 +44,16 @@ The `dismissable` variant and tags without a variant are non-interactive and sho
49
44
50
45
<QdsDemoname="TagVariantsDemo" />
51
46
47
+
### Controlled State
48
+
49
+
::: terms
50
+
signal, state management, two-way binding
51
+
:::
52
+
53
+
Set the initial value using the [defaultSelected](./#defaultSelected) input, or use the [selected](./#selected) input together with the [selectedChange](./#selectedChange) output to control the value manually. The pair supports `[(selected)]` two-way binding. Only applicable when [variant](./#variant) is `selectable`.
54
+
55
+
<QdsDemoname="TagControlledDemo" />
56
+
52
57
### Colors
53
58
54
59
::: terms
@@ -62,9 +67,7 @@ Control the visual emphasis with different colors via the [emphasis](./#emphasis
62
67
### Sizes
63
68
64
69
::: terms
65
-
small
66
-
medium
67
-
large
70
+
small, medium, large
68
71
:::
69
72
70
73
Choose from three [sizes](./#size): `sm`, `md` and `lg`. The default size is `md`.
Set the initial value using the [defaultSelected](./#defaultSelected) prop, or use [selected](./#selected) and [onSelectedChange](./#onSelectedChange) to control the value manually. These props follow our [controlled state](/patterns/controlled-state) pattern. Only applicable when [variant](./#variant) is `selectable`.
49
+
50
+
<Demo
51
+
expanded
52
+
name="TagControlledDemo"
53
+
component={demos.TagControlledDemo}
54
+
/>
55
+
47
56
### Colors
48
57
49
58
::: terms
@@ -57,9 +66,7 @@ Control the visual emphasis with different colors via the [emphasis](./#emphasis
57
66
### Sizes
58
67
59
68
::: terms
60
-
small
61
-
medium
62
-
large
69
+
small, medium, large
63
70
:::
64
71
65
72
Choose from three [sizes](./#size): `sm`, `md` and `lg`. The default size is `md`.
0 commit comments