Skip to content

Commit

Permalink
docs: add comment for select
Browse files Browse the repository at this point in the history
  • Loading branch information
phongit-kha committed Jan 6, 2025
1 parent 477cb3d commit 6ba07e1
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,24 @@
argTypes: {
value: {
control: 'text',
description: 'Currently selected value.',
},
disabled: {
control: 'boolean',
defaultValue: false,
description: 'Disables the component.',
},
type: {
control: {
type: 'select',
},
options: ['single', 'multiple'],
defaultValue: 'single',
description: 'Selection mode: single or multiple.',
},
name: {
control: 'text',
description: 'Name attribute for forms.',
},
},
})
Expand Down Expand Up @@ -147,15 +151,15 @@
<Select.Root type="multiple" name="favoriteFruit" bind:value={value2}>
<Select.Trigger
aria-label="Select multiple fruits"
class="w-[300px] h-12 z-0 space-x-2"
class="w-[300px] h-12 z-0 "
placeholder="Select fruits"
>
{#if !value2.length}
เลือก
{:else}
{#each value2 as temp}
<Chip
class="z-10"
class="z-10 mr-2"
closable
onClose={(event: MouseEvent) => {
event.stopPropagation()
Expand Down

0 comments on commit 6ba07e1

Please sign in to comment.