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

Commit

Permalink
Add placeholder story for select (#954)
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthkp committed Sep 28, 2018
1 parent af9d00c commit bf7c488
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions core/components/atoms/select/select.story.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ storiesOf('Select').add('simple', () => (
</Example>
))

storiesOf('Select').add('with placeholder', () => (
<Example title="Code">
<Select
placeholder="Select an option..."
options={[{ text: 'One', value: 1 }, { text: 'Two', value: 2 }, { text: 'Three', value: 3 }]}
onChange={event => console.log(event)}
/>
</Example>
))

storiesOf('Select').add('default value', () => (
<Example title="Code">
<Select
Expand Down

0 comments on commit bf7c488

Please sign in to comment.