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
feat(LabelGroup): render as list by default (#5156)
* feat(LabelGroup): render as list by default
* docs(LabelGroup): add as props to docs.json
* fix(LabelGroup): lint
* fix(LabelGroup): action button inside li
* fix(LabelGroup): fix broken tests, small refactor
* Create blue-eggs-suffer.md
* fix(LabelGroup): wrap children in li instead of using context
* fix(Label): revert changes
* fix(LabelGroup): use add key to children map
Copy file name to clipboardExpand all lines: packages/react/src/LabelGroup/LabelGroup.docs.json
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,12 @@
17
17
"description": "How many tokens to show. `'auto'` truncates the tokens to fit in the parent container. Passing a number will truncate after that number tokens. If this is undefined, tokens will never be truncated.",
18
18
"defaultValue": "",
19
19
"type": "'auto' | number"
20
+
},
21
+
{
22
+
"name": "as",
23
+
"description": "Customize the element type of the rendered container.",
Copy file name to clipboardExpand all lines: packages/react/src/LabelGroup/LabelGroup.tsx
+51-28Lines changed: 51 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,8 @@ import type {SxProp} from '../sx'
12
12
importsxfrom'../sx'
13
13
14
14
exporttypeLabelGroupProps={
15
+
/** Customize the element type of the rendered container */
16
+
as?: React.ElementType
15
17
/** How hidden tokens should be shown. `'inline'` shows the hidden tokens after the visible tokens. `'overlay'` shows all tokens in an overlay that appears on top of the visible tokens. */
16
18
overflowStyle?: 'inline'|'overlay'
17
19
/** How many tokens to show. `'auto'` truncates the tokens to fit in the parent container. Passing a number will truncate after that number tokens. If this is undefined, tokens will never be truncated. */
0 commit comments