feat(multi-select): make MultiSelect slottable (#1183)

This commit is contained in:
metonym 2022-03-19 09:15:58 -07:00 committed by GitHub
commit 1017e80198
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 71 additions and 17 deletions

View file

@ -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.