Components
- Accordion
- Alert Dialog
- Alert
- Autocomplete
- Avatar
- Badge
- Button Group
- Button
- Card
- Carousel
- Chart
- Checkbox
- Clipboard
- Collapsible
- Combobox
- Command
- Context Menu
- Date Picker
- Dialog
- Editable
- Field
- File Upload
- Floating Panel
- Hover Card
- Input Group
- Input OTP
- Input
- Item
- Kbd
- Marquee
- Menu
- Native Select
- Number Input
- Pagination
- Popover
- Progress
- QR Code
- Radio Group
- Rating Group
- Scroll Area
- Select
- Separator
- Sheet
- Skeleton
- Slider
- Spinner
- Splitter
- Steps
- Switch
- Table
- Tabs
- Textarea
- Toast
- Toggle Group
- Toggle
- Tooltip
- Tour
- Tree View
A searchable select input that allows users to filter and select from a list of options
Select a fruit from the list
Installation
pnpm dlx shadcn@latest add @shark-ui/combobox
Usage
import { Combobox, ComboboxLabel, ComboboxControl, ComboboxInput, ComboboxTrigger, ComboboxClearTrigger, ComboboxContent, ComboboxItem, ComboboxItemGroup, ComboboxItemGroupLabel, } from "@/components/ui/combobox";
<Combobox> <ComboboxControl> <ComboboxInput /> <ComboboxClearTrigger /> <ComboboxTrigger /> </ComboboxControl> <ComboboxContent> <ComboboxItemGroup> <ComboboxItemGroupLabel>Frameworks</ComboboxItemGroupLabel> {collection.items.map((item) => ( <ComboboxItem item={item} key={item}> {item} </ComboboxItem> ))} </ComboboxItemGroup> </ComboboxContent> </Combobox>
Examples
Default
Select a fruit from the list