Free and open-source React multi select components built for modern applications and websites. These multi select components are built using React Aria and styled with Tailwind CSS.
Installation
You can add this multi-select component using our CLI or manually:
npx untitledui@latest add select
Multi-select examples
Below are examples and variations of this multi-select component:
Custom footer
The dropdown footer shows "Reset" and "Select all" buttons by default, and both work without any handlers. To change the labels or add your own actions, use the footer prop.
Pass it a function to receive React Aria's select state, so your buttons can change the selection with state.setValue() or close the dropdown with state.close(). Wrap them in MultiSelect.Footer to keep the default footer styling.
API reference
Import the parts and assemble them:
import { MultiSelect } from "@/components/base/select/multi-select"; <MultiSelect items={items} footer={<MultiSelect.Footer />}> {(item) => renderItem(item)} </MultiSelect>
MultiSelect
Renders React Aria’s Select — all of its props are supported.
Props from React Aria (29)
Also accepts the global HTML attributes (dir, lang, hidden, inert, translate), all standard React DOM event handlers.
MultiSelect.EmptyState
Renders a <div> element.
MultiSelect.Item
Import SelectItem from @/components/base/select/select-item. Renders React Aria’s ListBoxItem — all of its props are supported.
Props from React Aria (31)
Also accepts the global HTML attributes (dir, lang, hidden, inert, translate), all standard React DOM event handlers.
FAQs
Please refer to our frequently asked questions page for more.
The multi-select supports "sm", "md" and "lg" through the size prop. The default is "md", and the size also scales the search field and footer buttons inside the popover.
Set isDisabled to true. The trigger drops to 50% opacity and can no longer open the popover.
Pass selectedKeys and onSelectionChange for a controlled multi-select, or defaultSelectedKeys to let it manage the selection itself. Both take a React Aria Selection: a Set of item ids, or "all" for every enabled entry in items.
The dropdown footer renders by default (showFooter defaults to true) with a "Reset" and a "Select all" button. They clear the selection and select every enabled item on their own. Pass onReset or onSelectAll to replace that behavior, or set showFooter={false} to remove the footer.
Pass a function to footer, as in the Custom footer example. It receives React Aria's SelectState: call state.setValue() with an array of item ids to change the selection, and state.close() to close the dropdown. To select every item, pass all their ids to state.setValue(), because React Aria's selectionManager.selectAll() has no effect inside a select.
With nothing selected the trigger shows placeholder, which defaults to "Select". Once items are selected it shows "{count} selected"; pass selectedCountFormatter, which receives the count and returns a ReactNode, to change that, and supportingText to add muted text after it, such as "12 users".
Set showSearch={false} to remove the search input from the popover. Use emptyStateTitle and emptyStateDescription to customize the empty state shown when the listbox has no items (no search results, or an empty items array).