Combobox
A text control that filters a list of options as you type.
Component
Combobox belongs to the Pickers group in the CyberSpec catalog. It uses @ui-sdk/react/combobox.
Installation
Use a React 19 project with shadcn configured. Render the installed components inside the Cyber root, and import your global stylesheet in the app entry point.
bunx --bun shadcn@latest add https://www.cyberspec.dev/r/combobox.json
Example
"use client"
import { Combobox } from "@/components/ui/combobox"
export default function ComboboxDemo() {
return (
<>
<Combobox
label="Contact"
placeholder="Search contacts"
defaultValue="juno"
empty="No contact by that name."
hint="Type a name or a trade."
options={[
{ value: "mara", label: "Mara Voss", meta: "Fixer" },
{ value: "ilya", label: "Ilya Brandt", meta: "Tech" },
{ value: "juno", label: "Juno Okafor", meta: "Medic" },
{ value: "dex", label: "Dex Marlowe", meta: "Driver" },
{ value: "sable", label: "Sable Quinn", meta: "Runner" },
{ value: "ren", label: "Ren Aoki", meta: "Broker", disabled: true },
]}
/>
</>
)
}
Install this example
bunx --bun shadcn@latest add https://www.cyberspec.dev/r/combobox-demo.json