Componentpickers1.58 KB gzipZero dependencies
Multi Select
Trigger + popover picker with search input, checkbox options, and animated removable selection chips.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add multi-selectOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { MultiSelect } from "@/components/ui/multi-select"; <MultiSelect options={options} selected={selected} onSelectionChange={setSelected} searchable />Source code
multi-select.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxmulti-select.tsx228 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export type MultiSelectOption = { value: string; label: string; disabled?: boolean;}; export type MultiSelectProps = { selected?: string[]; defaultSelected?: string[]; onSelectionChange?: (selected: string[]) => void; options: MultiSelectOption[]; searchable?: boolean; className?: string;Props
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { MultiSelect } from "@/components/ui/multi-select"; <MultiSelect />| Prop | Type | Description |
|---|---|---|
| selected | string[] | Controlled selected values. |
| defaultSelected | string[] | Uncontrolled initial values. |
| onSelectionChange | (selected: string[]) => void | Selection change handler. |
| options | MultiSelectOption[] | Available options. |
| searchable | boolean | Show the search input. |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |