--- title: Multi Select description: Multiple selection component. component: true fragment: true --- ## Usage ```tsx import { MultiSelector, MultiSelectorContent, MultiSelectorItem, MultiSelectorTrigger, } from 'ui-patterns/multi-select' ``` ```tsx Apple Banana Grape Strawberry ``` ## Examples ### Disabled ### Without trigger icon Set `showIcon={false}` to hide the trigger icon. ### Badge Combo Box Use `MultiSelectorInput`to add a search input. ### Badge Combo Box with creatable selector creatable: `boolean` `creatable` prop on the `MultiSelectorList` component can be used to add a new option if no items match ### Badge limit badgeLimit: `number` | `"wrap"`. `badgeLimit` prop on the `MultiSelectorTrigger` component can be used to limit the number of badges displayed. ### Wrapped badge limit Combine `badgeLimit` with `wrapBadges` to limit the number of badges and allow them to wrap onto additional lines. Use `badgeLimit="wrap"` to show and wrap every selected badge. ### Deletable Badge Add the `deletableBadge` prop on the `MultiSelectorTrigger` component to enable badge removal directly from the badge. ### Inline search input Use `mode="inline-combobox"` on the `MultiSelectorTrigger` component to add an inline search input. ### Inside a dialog Use `mode="inline-combobox"` on the `MultiSelectorTrigger` component to add an inline search input.