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
@@ -55,7 +57,7 @@ Use `<InputGroup>` when you need to add visual context or actions directly adjac
55
57
56
58
exportfunction SizesDemo() {
57
59
return (
58
-
<Grid>
60
+
<Gridcolumns="repeat(3, minmax(0, 1fr))"gap="md">
59
61
<div>
60
62
<code>md (default)</code>
61
63
<InputGroup>
@@ -117,7 +119,7 @@ export function SizesDemo() {
117
119
Use `<InputGroup.LeadingItems>` to add elements to the left side (start) of the input. Common use cases include search icons, currency symbols, or prefixes.
118
120
119
121
<Storybook.Demo>
120
-
<Grid>
122
+
<Gridcolumns="repeat(3, minmax(0, 1fr))"gap="md">
121
123
<InputGroup>
122
124
<InputGroup.LeadingItemsdisablePointerEvents>
123
125
<IconSearch />
@@ -141,7 +143,7 @@ Use `<InputGroup.LeadingItems>` to add elements to the left side (start) of the
141
143
Use `<InputGroup.TrailingItems>` to add elements to the right side (end) of the input. Common use cases include clear buttons, loading indicators, or unit labels.
142
144
143
145
<Storybook.Demo>
144
-
<Grid>
146
+
<Gridcolumns="repeat(3, minmax(0, 1fr))"gap="md">
145
147
<InputGroup>
146
148
<InputGroup.Inputplaceholder="Search" />
147
149
<InputGroup.TrailingItemsdisablePointerEvents>
@@ -194,7 +196,7 @@ When trailing items contain interactive elements (like buttons), don't use `disa
194
196
195
197
exportfunction InteractiveDemo() {
196
198
return (
197
-
<Grid>
199
+
<Gridcolumns="repeat(3, minmax(0, 1fr))"gap="md">
198
200
<InputGroup>
199
201
<InputGroup.Inputplaceholder="Search" />
200
202
<InputGroup.TrailingItems>
@@ -418,7 +420,3 @@ Show a loading indicator when fetching results:
418
420
- Ensure the input receives focus when the label is clicked
419
421
420
422
For more information, see the [WAI-ARIA Text Input practices](https://www.w3.org/WAI/ARIA/apg/patterns/textbox/).
Use the `placeholder` prop to provide hint text when the input is empty.
272
274
273
275
<Storybook.Demo>
274
-
<Label>
276
+
<Stackgap="md">
275
277
With placeholder
276
278
<NumberDragInputplaceholder="Enter a value"min={0}max={100} />
277
-
</Label>
279
+
</Stack>
278
280
</Storybook.Demo>
279
281
280
282
```jsx
@@ -411,9 +413,3 @@ The component includes:
411
413
412
414
> [!WARNING]
413
415
> The drag interaction relies on pointer lock, which may not work in all browsers or contexts. Always test keyboard functionality as the primary accessibility method.
0 commit comments