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: src/components/content/Item/Item.docs.mdx
+4-6Lines changed: 4 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,18 +59,16 @@ The `mods` property accepts the following modifiers:
59
59
60
60
| Modifier | Type | Description |
61
61
|----------|------|-------------|
62
-
| with-icon |`boolean`| Applied when an icon is present |
63
-
| with-right-icon |`boolean`| Applied when a right icon is present |
64
-
| with-prefix |`boolean`| Applied when a prefix is present |
65
-
| with-suffix |`boolean`| Applied when a suffix is present |
66
-
| with-description |`boolean`| Applied when a description is present |
67
-
| with-description-block |`boolean`| Applied when description placement is "block" |
62
+
| has-description-block |`boolean`| Applied when description placement is "block" |
63
+
| has-actions-content |`boolean`| Applied when actions have actual content (not just placeholder) |
68
64
| checkbox |`boolean`| Applied when using checkbox icon (icon="checkbox") |
69
65
| selected |`boolean`| Applied when isSelected is true |
70
66
| shape-card |`boolean`| Applied when shape is "card" |
71
67
| shape-button |`boolean`| Applied when shape is "button" |
72
68
| shape-sharp |`boolean`| Applied when shape is "sharp" |
73
69
70
+
**Note:** Element presence (Icon, RightIcon, Prefix, Suffix, Description, Actions) is now automatically detected via CSS `:has()` selectors and doesn't require manual modifiers.
0 commit comments