BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/9ui/combobox

combobox

9ui/combobox
FreeComponent

9ui publishes no description for this item.

Live preview

live · rendered by the registry
Rendered by 9ui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://9ui.dev/r/combobox.json

Source

ui/combobox.tsx9ui.dev/r/combobox.json · first 6 KB
1import { Combobox as BaseCombobox } from "@base-ui/react/combobox"
2import { CheckIcon, ChevronDownIcon, XIcon } from "lucide-react"
3
4import { cn } from "@/lib/utils"
5
6function Combobox({
7 ...props
8}: React.ComponentProps<typeof BaseCombobox.Root>) {
9 return <BaseCombobox.Root data-slot="combobox" {...props} />
10}
11
12function ComboboxValue({
13 ...props
14}: React.ComponentProps<typeof BaseCombobox.Value>) {
15 return <BaseCombobox.Value data-slot="combobox-value" {...props} />
16}
17
18function ComboboxIcon({
19 ...props
20}: React.ComponentProps<typeof BaseCombobox.Icon>) {
21 return <BaseCombobox.Icon data-slot="combobox-icon" {...props} />
22}
23
24function ComboboxClear({
25 ...props
26}: React.ComponentProps<typeof BaseCombobox.Clear>) {
27 return <BaseCombobox.Clear data-slot="combobox-clear" {...props} />
28}
29
30function ComboboxList({
31 ...props
32}: React.ComponentProps<typeof BaseCombobox.List>) {
33 return <BaseCombobox.List data-slot="combobox-list" {...props} />
34}
35
36function ComboboxGroup({
37 ...props
38}: React.ComponentProps<typeof BaseCombobox.Group>) {
39 return <BaseCombobox.Group data-slot="combobox-group" {...props} />
40}
41
42function ComboboxPortal({
43 ...props
44}: React.ComponentProps<typeof BaseCombobox.Portal>) {
45 return <BaseCombobox.Portal data-slot="combobox-portal" {...props} />
46}
47
48function ComboboxPositioner({
49 ...props
50}: React.ComponentProps<typeof BaseCombobox.Positioner>) {
51 return <BaseCombobox.Positioner data-slot="combobox-positioner" {...props} />
52}
53
54function ComboboxTrigger({
55 className,
56 size = "default",
57 children,
58 ...props
59}: React.ComponentProps<typeof BaseCombobox.Trigger> & {
60 size?: "sm" | "default"
61}) {
62 return (
63 <BaseCombobox.Trigger
64 data-slot="combobox-trigger"
65 data-size={size}
66 className={cn(
67// … truncated

Files it writes

  • src/components/ui/combobox.tsx

Facts

Registry
9ui
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-03
Last confirmed
yesterday

Go to the source

Docs on 9ui 9ui.dev borabaloglu/9ui on GitHub Raw registry item This item as JSON

More from 9ui

All 56 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
accordionaccordion9uiComponentsFreeno deps
alertalert9uiComponentsFreeno deps
alert-dialogalert-dialog9uiComponentsFreeno deps
aspect-ratioaspect-ratio9uiComponentsFreeno deps
autocompleteautocomplete9uiComponentsFreeno deps
avataravatar9uiComponentsFreeno deps
badgebadge9uiComponentsFreeno deps
breadcrumbsbreadcrumbs9uiComponentsFreeno deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex