Skip to content

Commit 8412c6c

Browse files
committed
Updates story
1 parent 391c11a commit 8412c6c

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

packages/uui-input/lib/uui-input.story.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,4 +222,25 @@ export const DataList: Story = {
222222
{ name: 'Strawberry', value: 'red' },
223223
],
224224
},
225+
parameters: {
226+
docs: {
227+
source: {
228+
format: false,
229+
language: 'jsx',
230+
code: `
231+
// this is an example of array you need to pass to the input component
232+
const options: Array<Option> = [
233+
{ name: 'Carrot', value: 'orange' },
234+
{ name: 'Cucumber', value: 'green' },
235+
{ name: 'Aubergine', value: 'purple' },
236+
{ name: 'Blueberry', value: 'Blue' },
237+
{ name: 'Banana', value: 'yellow' },
238+
{ name: 'Strawberry', value: 'red' },
239+
];
240+
241+
<uui-input .options=\${options}></uui-input>
242+
`,
243+
},
244+
},
245+
},
225246
};

0 commit comments

Comments
 (0)