Skip to content

Commit

Permalink
fix: select reusable comp docs
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte committed Nov 22, 2024
1 parent 1205e92 commit a1118db
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions sites/docs/content/components/select.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,7 @@ Here's an example of how you might create a reusable `MySelect` component that r
<Select.Root bind:value {...restProps}>
<Select.Trigger>
{#if selectedLabel}
<Select.Value>
{selectedLabel}
</Select.Value>
{:else}
<Select.Value {placeholder} />
{/if}
{selectedLabel ? selectedLabel : placeholder}
</Select.Trigger>
<Select.Portal>
<Select.Content {...contentProps}>
Expand Down

0 comments on commit a1118db

Please sign in to comment.