BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/Kibo UI Registry/combobox

combobox

kibo-ui-registry/combobox
FreeComponent

Autocomplete input and command palette with a list of suggestions.

Live preview

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

Install it

npx shadcn@latest add https://www.kibo-ui.com/r/combobox.json

Source

index.tsxwww.kibo-ui.com/r/combobox.json · first 6 KB
1"use client";
2
3import { useControllableState } from "@radix-ui/react-use-controllable-state";
4import { ChevronsUpDownIcon, PlusIcon } from "lucide-react";
5import {
6 type ComponentProps,
7 createContext,
8 type ReactNode,
9 useContext,
10 useEffect,
11 useRef,
12 useState,
13} from "react";
14import { Button } from "@/components/ui/button";
15import {
16 Command,
17 CommandEmpty,
18 CommandGroup,
19 CommandInput,
20 CommandItem,
21 CommandList,
22 CommandSeparator,
23} from "@/components/ui/command";
24import {
25 Popover,
26 PopoverContent,
27 PopoverTrigger,
28} from "@/components/ui/popover";
29import { cn } from "@/lib/utils";
30
31type ComboboxData = {
32 label: string;
33 value: string;
34};
35
36type ComboboxContextType = {
37 data: ComboboxData[];
38 type: string;
39 value: string;
40 onValueChange: (value: string) => void;
41 open: boolean;
42 onOpenChange: (open: boolean) => void;
43 width: number;
44 setWidth: (width: number) => void;
45 inputValue: string;
46 setInputValue: (value: string) => void;
47};
48
49const ComboboxContext = createContext<ComboboxContextType>({
50 data: [],
51 type: "item",
52 value: "",
53 onValueChange: () => {},
54 open: false,
55 onOpenChange: () => {},
56 width: 200,
57 setWidth: () => {},
58 inputValue: "",
59 setInputValue: () => {},
60});
61
62export type ComboboxProps = ComponentProps<typeof Popover> & {
63 data: ComboboxData[];
64 type: string;
65 defaultValue?: string;
66 value?: string;
67 onValueChange?: (value: string) => void;
68 open?: boolean;
69 onOpenChange?: (open: boolean) => void;
70};
71
72export const Combobox = ({
73 data,
74 type,
75 defaultValue,
76 value: controlledValue,
77 onValueChange: controlledOnValueChange,
78 defaultOpen = false,
79 open: controlledOpen,
80 onOpenChange: controlledOnOpenChange,
81 ...props
82}: ComboboxProps) => {
83 const [value, onValueChange] = useControllableState({
84 defaultProp: defaultValue ?? "",
85 prop: controlledValue,
86 onChange: controlledOnValueChange,
87 });
88 const [open, onOpenChange] = useControllableState({
89 defaultProp: defaultOpen,
90 prop: controlledOpen,
91 onChange: controlledOnOpenChange,
92 });
93 const [width, setWidth] = useState(200);
94 const [inputValue, setInputValue] = useState("");
95
96 return (
97 <ComboboxContext.Provider
98 value={{
99 type,
100 value,
101 onValueChange,
102 open,
103 onOpenChange,
104 data,
105 width,
106 setWidth,
107 inputValue,
108 setInputValue,
109 }}
110 >
111 <Popover {...props} onOpenChange={onOpenChange} open={open} />
112// … truncated

What it pulls in

npm packages

  • @radix-ui/react-use-controllable-state
  • lucide-react

Other registry items

  • button
  • command
  • popover

Files it writes

  • index.tsx

Facts

Registry
Kibo UI Registry
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
In the index
at or before 2026-08-08
Last confirmed
today

Go to the source

Docs on Kibo UI Registry www.kibo-ui.com Raw registry item This item as JSON

More from Kibo UI Registry

All 41 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
announcementannouncementKibo UI RegistryComponentsFreeno deps
avatar-stackavatar-stackKibo UI RegistryComponentsFreeno deps
bannerbannerKibo UI RegistryComponentsFree2 deps
calendarcalendarKibo UI RegistryComponentsFree3 deps
choiceboxchoiceboxKibo UI RegistryComponentsFree2 deps
code-blockcode-blockKibo UI RegistryComponentsFree5 deps · 2 files
color-pickercolor-pickerKibo UI RegistryComponentsFree3 deps
comparisoncomparisonKibo UI RegistryComponentsFree2 deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex