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
@@ -216,6 +215,14 @@ export const Basic: Story = {
216
215
args: {
217
216
label: 'Default input',
218
217
},
218
+
parameters: {
219
+
docs: {
220
+
description: {
221
+
story:
222
+
'A fully interactive input with all available controls wired up. Use the **Controls** panel to explore different types, validation constraints, and visual states.',
223
+
},
224
+
},
225
+
},
219
226
render: (args)=>html`
220
227
<igc-input
221
228
autocomplete=${ifDefined(args.autocomplete)}
@@ -240,10 +247,74 @@ export const Basic: Story = {
240
247
`,
241
248
};
242
249
250
+
exportconstTypes: Story={
251
+
argTypes: disableStoryControls(metadata),
252
+
parameters: {
253
+
docs: {
254
+
description: {
255
+
story:
256
+
'Demonstrates all supported `type` values: `text`, `email`, `number`, `password`, `search`, `tel`, and `url`.',
'Demonstrates the available content slots: `prefix` and `suffix` for inline decorations, and `helper-text` for guidance below the input.',
315
+
},
316
+
},
317
+
},
247
318
render: (args)=>html`
248
319
<igc-input
249
320
autocomplete=${ifDefined(args.autocomplete)}
@@ -274,6 +345,14 @@ export const Slots: Story = {
274
345
275
346
exportconstValidation: Story={
276
347
argTypes: disableStoryControls(metadata),
348
+
parameters: {
349
+
docs: {
350
+
description: {
351
+
story:
352
+
'Showcases built-in constraint validation with custom slot-based error messages. Submit the form to trigger validation feedback for `required`, `type`, `pattern`, `minlength`, and `too-short` constraints.',
353
+
},
354
+
},
355
+
},
277
356
render: ()=>html`
278
357
<style>
279
358
fieldset {
@@ -344,6 +423,14 @@ export const Validation: Story = {
344
423
345
424
exportconstForm: Story={
346
425
argTypes: disableStoryControls(metadata),
426
+
parameters: {
427
+
docs: {
428
+
description: {
429
+
story:
430
+
'Comprehensive form integration demo covering readonly, disabled, required, min/max length, numeric min/max, `validate-only`, pattern, email, and URL validators.',
@@ -73,15 +72,20 @@ export const Default: Story = {
73
72
name: 'default-state',
74
73
value: 'mango',
75
74
},
75
+
parameters: {
76
+
docs: {
77
+
description: {
78
+
story:
79
+
'A basic radio group with a pre-selected value set via the `value` attribute. Use the **Controls** panel to change the selected value or switch alignment.',
80
+
},
81
+
},
82
+
},
76
83
render: (args)=>html`
77
84
<igc-radio-group
78
85
alignment=${ifDefined(args.alignment)}
79
86
name=${ifDefined(args.name)}
80
87
value=${ifDefined(args.value)}
81
-
aria-labelledby="radio-group-label"
82
-
role="radiogroup"
83
88
>
84
-
<labelid="radio-group-label">Radio Group Label</label>
85
89
<igc-radiovalue="apple">Apple</igc-radio>
86
90
<igc-radiovalue="orange">Orange</igc-radio>
87
91
<igc-radiovalue="mango">Mango</igc-radio>
@@ -90,58 +94,118 @@ export const Default: Story = {
90
94
`,
91
95
};
92
96
97
+
exportconstAlignment: Story={
98
+
argTypes: disableStoryControls(metadata),
99
+
parameters: {
100
+
docs: {
101
+
description: {
102
+
story:
103
+
'Demonstrates the two `alignment` values — `vertical` (default) and `horizontal` — side by side.',
0 commit comments