mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
feat(multi-select): make MultiSelect
slottable (#1183)
This commit is contained in:
parent
f5594daba6
commit
1017e80198
7 changed files with 71 additions and 17 deletions
|
@ -13,6 +13,12 @@ By default, items will be ordered alphabetically based on the `item.text` value.
|
|||
{id: "2", text: "Fax"}]}"
|
||||
/>
|
||||
|
||||
### Custom slot
|
||||
|
||||
Override the default slot to customize the display of each item. Access the item and index through the `let:` directive.
|
||||
|
||||
<FileSource src="/framed/MultiSelect/MultiSelectSlot" />
|
||||
|
||||
### No alphabetical ordering
|
||||
|
||||
To prevent alphabetical item ordering, pass an empty function to the `sortItem` prop.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue