Combobox
Kibo Combobox uses a data collection with composed trigger and command content.
Practical React example
Search a named set of options and select one stable value.
Before you copy and paste
Use the composed primitives together under their required provider, where one is present. Copy components/kibo-ui/combobox/index.tsx and its returned support files from the Code tab; preserve the project-relative paths. Install the listed primitives: pnpm dlx shadcn@latest add button command popover.
Listed package dependencies: @radix-ui/react-use-controllable-state, lucide-react.
Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.
Search a named set of options and select one stable value
// Usage adapted from Kibo UI's pinned MIT source.
// Copyright (c) 2023 — Present shadcnblocks. See ./LICENSES.md.
"use client";
import {
Combobox,
ComboboxContent,
ComboboxEmpty,
ComboboxGroup,
ComboboxInput,
ComboboxItem,
ComboboxList,
ComboboxTrigger,
} from "@/components/kibo-ui/combobox";
const frameworks = [
{
value: "next.js",
label: "Next.js",
},
{
value: "sveltekit",
label: "SvelteKit",
},
{
value: "nuxt.js",
label: "Nuxt.js",
},
{
value: "remix",
label: "Remix",
},
{
value: "astro",
label: "Astro",
},
{
value: "vite",
label: "Vite",
},
];
const Example = () => (
<Combobox
data={frameworks}
onOpenChange={(open) => console.log("Combobox is open?", open)}
onValueChange={(newValue) => console.log("Combobox value:", newValue)}
type="framework"
>
<ComboboxTrigger />
<ComboboxContent>
<ComboboxInput />
<ComboboxEmpty />
<ComboboxList>
<ComboboxGroup>
{frameworks.map((framework) => (
<ComboboxItem key={framework.value} value={framework.value}>
{framework.label}
</ComboboxItem>
))}
</ComboboxGroup>
</ComboboxList>
</ComboboxContent>
</Combobox>
);
export default Example;
Usage example adapted from Kibo UI's pinned MIT source. Retain the source licence notices when copying.
Provide the required type label and data expected by the pinned component. Keep value and onValueChange connected to the same parent state when the choice affects a saved record.
Customization
- ComboboxProps.data
- Required; ComboboxData[].
- ComboboxProps.type
- Required; string.
- ComboboxProps.defaultValue
- Optional; string.
- ComboboxProps.value
- Optional; string.
- ComboboxProps.onValueChange
- Optional; (value: string) => void.
- ComboboxProps.open
- Optional; boolean.
- ComboboxProps.onOpenChange
- Optional; (open: boolean) => void.
- ComboboxContentProps.popoverOptions
- Optional; ComponentProps<typeof PopoverContent>.
- ComboboxInputProps.value
- Optional; string.
- ComboboxInputProps.defaultValue
- Optional; string.
- ComboboxInputProps.onValueChange
- Optional; (value: string) => void.
- ComboboxCreateNewProps.onCreateNew
- Required; (value: string) => void.
- ComboboxCreateNewProps.children
- Optional; (inputValue: string) => ReactNode.
- ComboboxCreateNewProps.className
- Optional; string.
Integration notes
- Keep remote loading and stale-response handling outside the popup.
- An option visible in a client list still needs server-side validation and access checks when submitted.
Component source: Kibo UI documentation . These examples describe the version imported into Rendyn. Upstream APIs may have changed; retain the source licence notices when adapting the code.
Give your agent taste.
The best way to use Rendyn is through MCP. Let your agent find the right component, compare previews and bring the source into your project.
All components are free. Sign up only to connect MCP.