Skip to content

Commit

Permalink
fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
micheal-parks committed Dec 19, 2024
1 parent bfc70d4 commit 896cbcf
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions packages/core/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -1087,26 +1087,24 @@ const onHoverDelayMsInput = (event: Event) => {
>
For attribute example with Autocomplete Input
</Label>
<div class="max-w-fit">
<AutocompleteInput
id="targetID"
options={[
{ value: 'First Option', label: 'First option' },
'Option 2',
{ value: 'C.) Option', label: 'second' },
'A really long forth option just in case you need it',
{
value: 'Option with a long description',
label: 'usb-Generic_Laptop_Camera_200901010001-video-index0',
},
]}
placeholder="Select an option"
onChange={(value) => {
// eslint-disable-next-line no-console
console.log('Selected', value);
}}
/>
</div>
<AutocompleteInput
id="targetID"
options={[
{ value: 'First Option', label: 'First option' },
'Option 2',
{ value: 'C.) Option', label: 'second' },
'A really long forth option just in case you need it',
{
value: 'Option with a long description',
label: 'usb-Generic_Laptop_Camera_200901010001-video-index0',
},
]}
placeholder="Select an option"
onChange={(value) => {
// eslint-disable-next-line no-console
console.log('Selected', value);
}}
/>
</div>
</div>

Expand Down

0 comments on commit 896cbcf

Please sign in to comment.