This component no longer exists. It was in ondo-ui’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-09 and this item was not on it. The install command below will fail. It is kept here because a tutorial somewhere still tells people to run it.
combobox
ondo-ui/comboboxRemovedComponent
Autocomplete input with a list of suggestions.
Install it
npx shadcn@latest add https://ui.ondo.dou.so/r/combobox.jsonSource
1"use client"23import * as React from "react"4import { Combobox as ComboboxPrimitive } from "@base-ui/react"56import { cn } from "@/lib/utils"7import { Button } from "@/components/ui/button"8import {9 InputGroup,10 InputGroupAddon,11 InputGroupButton,12 InputGroupInput,13} from "@/components/ui/input-group"14import { IconChevronDown, IconX, IconCheck } from "@tabler/icons-react"1516type ComboboxSize = "xs" | "sm" | "default" | "lg" | "xl" | "2xl"1718const ComboboxSizeContext = React.createContext<ComboboxSize>("default")1920function Combobox<Value, Multiple extends boolean | undefined = false>({21 size = "default",22 ...props23}: ComboboxPrimitive.Root.Props<Value, Multiple> & { size?: ComboboxSize }) {24 return (25 <ComboboxSizeContext.Provider value={size}>26 <ComboboxPrimitive.Root {...props} />27 </ComboboxSizeContext.Provider>28 )29}3031function ComboboxValue({ ...props }: ComboboxPrimitive.Value.Props) {32 return <ComboboxPrimitive.Value data-slot="combobox-value" {...props} />33}3435function ComboboxTrigger({36 className,37 children,38 ...props39}: ComboboxPrimitive.Trigger.Props) {40 return (41 <ComboboxPrimitive.Trigger42 data-slot="combobox-trigger"43 className={cn("[&_svg:not([class*='size-'])]:size-4", className)}44 {...props}45 >46 {children}47 <IconChevronDown className="pointer-events-none size-4 text-muted-foreground" />48 </ComboboxPrimitive.Trigger>49 )50}5152function ComboboxClear({ className, ...props }: ComboboxPrimitive.Clear.Props) {53 return (54 <ComboboxPrimitive.Clear55 data-slot="combobox-clear"56 render={57 <InputGroupButton variant="ghost" size="icon-xs" />58 }59 className={cn(className)}60 {...props}61 >62 <IconX className="pointer-events-none" />63 </ComboboxPrimitive.Clear>64 )65}6667function ComboboxInput({68 className,69 children,70 disabled = false,71 showTrigger = true,72 showClear = false,73 ...props74}: ComboboxPrimitive.Input.Props & {75 showTrigger?: boolean76 showClear?: boolean77}) {78 const size = React.useContext(ComboboxSizeContext)7980 return (81 <InputGroup size={size} className={cn("w-auto", className)}>82 <ComboboxPrimitive.Input83 render={<InputGroupInput disabled={disabled} />}84 {...props}85 />86 <InputGroupAddon align="inline-end">87 {showTrigger && (88 <InputGroupButton89 size="icon-xs"90 variant="ghost"91 render={<ComboboxTrigger />}92 data-slot="input-group-button"93// … truncated
What it pulls in
npm packages
Other registry items
