Skip to content

Commit

Permalink
add story showing use of autocomplete attribute with input (fix #534)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesscottbrown committed Jan 2, 2025
1 parent df3655c commit 72b88fb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/ui/src/lib/input/Input.stories.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -232,3 +232,11 @@
<Input type="range" label="Range" name="range" />
</div>
</Story>

<!-- You can facilitate autocompletion of input values by setting the `autocomplete` attribute
([docs on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)). -->
<Story name="With autocomplete">
<div class="w-96">
<Input autocomplete="shipping street-address" />
</div>
</Story>

0 comments on commit 72b88fb

Please sign in to comment.