Skip to content

Commit

Permalink
πŸ“ Storybook: Textfield: added datalist example
Browse files Browse the repository at this point in the history
  • Loading branch information
oddvernes committed Oct 31, 2023
1 parent 365231d commit 65ad2fa
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,20 @@ export const Types: Story = () => (
helperText="Helper Text"
inputIcon={<Icon name="thumbs_up" key="thumbs" size={16} />}
/>
<TextField
type="text"
id="textfield-datalist"
placeholder="Select browser"
label="With datalist"
list="browsers"
/>
<datalist id="browsers">
<option value="Chrome"></option>
<option value="Firefox"></option>
<option value="Opera"></option>
<option value="Safari"></option>
<option value="Microsoft Edge"></option>
</datalist>
</>
)
Types.decorators = [
Expand Down

0 comments on commit 65ad2fa

Please sign in to comment.