Componentpickers1.58 KB gzipZero dependencies

Multi Select

Trigger + popover picker with search input, checkbox options, and animated removable selection chips.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add multi-select

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { MultiSelect } from "@/components/ui/multi-select"; <MultiSelect options={options} selected={selected} onSelectionChange={setSelected} searchable />

Source code

multi-select.tsx + 1 helper

Zero 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 />
PropTypeDescription
selectedstring[]Controlled selected values.
defaultSelectedstring[]Uncontrolled initial values.
onSelectionChange(selected: string[]) => voidSelection change handler.
optionsMultiSelectOption[]Available options.
searchablebooleanShow the search input.
classNamestringOptional Tailwind or custom CSS classes merged with component styles.