Closed lipe-dev closed 11 months ago
I figured it out, just declare a new slot with both slot and name props:
<slot name="item" slot="item" let:item let:index {item} {index}>
<span class="text-neutral-600 font-medium text-paragraph-medium">
{capitalizeFirstLetterOfEachWord(item[$$props.label || 'label'])}
</span>
</slot>
Not sure this is the right place to ask, but here it goes:
I have my own Select component, which is supposed to just be a wrapper on svelte-select. It just adds a custom chevron-icon, a div around it and some custom CSS.
When I use my own Select, I want to be able to pass down all slots that svelte-select supports, like so: