Skip to content
This repository was archived by the owner on May 17, 2023. It is now read-only.

Commit bf7c488

Browse files
authored
Add placeholder story for select (#954)
1 parent af9d00c commit bf7c488

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

core/components/atoms/select/select.story.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@ storiesOf('Select').add('simple', () => (
1313
</Example>
1414
))
1515

16+
storiesOf('Select').add('with placeholder', () => (
17+
<Example title="Code">
18+
<Select
19+
placeholder="Select an option..."
20+
options={[{ text: 'One', value: 1 }, { text: 'Two', value: 2 }, { text: 'Three', value: 3 }]}
21+
onChange={event => console.log(event)}
22+
/>
23+
</Example>
24+
))
25+
1626
storiesOf('Select').add('default value', () => (
1727
<Example title="Code">
1828
<Select

0 commit comments

Comments
 (0)