Skip to content

Commit

Permalink
Add leading slot to Select
Browse files Browse the repository at this point in the history
  • Loading branch information
laurakwhit committed Jul 8, 2024
1 parent 2b9a78d commit 3c8d886
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/holocene/select/select.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,11 @@
controls="{id}-select"
{variant}
>
<Icon slot="leading" name={leadingIcon} />
<slot name="leading" slot="leading">
{#if leadingIcon}
<Icon name={leadingIcon} />
{/if}
</slot>
<input
{id}
value={!value && placeholder !== '' ? placeholder : $labelCtx}
Expand Down

0 comments on commit 3c8d886

Please sign in to comment.