This component no longer exists. It was in gmhlab’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
gmhlab/comboboxRemovedComponent
gmhlab publishes no description for this item.
Install it
npx shadcn@latest add https://raw.githubusercontent.com/gmhlab/monorepo/main/packages/ui/public/r/combobox.jsonSource
1"use client"23import * as React from "react"4import { Combobox as ComboboxPrimitive } from "@base-ui/react"5import { CheckIcon, ChevronDownIcon, XIcon } from "lucide-react"67import { cn } from "@/lib/utils"8import { Button } from "@/components/ui/button"9import {10 InputGroup,11 InputGroupAddon,12 InputGroupButton,13 InputGroupInput,14} from "@/components/ui/input-group"1516const Combobox = ComboboxPrimitive.Root1718function ComboboxValue({ ...props }: ComboboxPrimitive.Value.Props) {19 return <ComboboxPrimitive.Value data-slot="combobox-value" {...props} />20}2122function ComboboxTrigger({23 className,24 children,25 ...props26}: ComboboxPrimitive.Trigger.Props) {27 return (28 <ComboboxPrimitive.Trigger29 data-slot="combobox-trigger"30 className={cn("[&_svg:not([class*='size-'])]:size-4", className)}31 {...props}32 >33 {children}34 <ChevronDownIcon35 data-slot="combobox-trigger-icon"36 className="text-muted-foreground pointer-events-none size-4"37 />38 </ComboboxPrimitive.Trigger>39 )40}4142function ComboboxClear({ className, ...props }: ComboboxPrimitive.Clear.Props) {43 return (44 <ComboboxPrimitive.Clear45 data-slot="combobox-clear"46 render={<InputGroupButton variant="ghost" size="icon-xs" />}47 className={cn(className)}48 {...props}49 >50 <XIcon className="pointer-events-none" />51 </ComboboxPrimitive.Clear>52 )53}5455function ComboboxInput({56 className,57 children,58 disabled = false,59 showTrigger = true,60 showClear = false,61 ...props62}: ComboboxPrimitive.Input.Props & {63 showTrigger?: boolean64 showClear?: boolean65}) {66 return (67 <InputGroup className={cn("w-auto", className)}>68 <ComboboxPrimitive.Input69 render={<InputGroupInput disabled={disabled} />}70 {...props}71 />72 <InputGroupAddon align="inline-end">73 {showTrigger && (74 <InputGroupButton75 size="icon-xs"76 variant="ghost"77 asChild78 data-slot="input-group-button"79 className="group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent"80 disabled={disabled}81 >82 <ComboboxTrigger />83 </InputGroupButton>84 )}85 {showClear && <ComboboxClear disabled={disabled} />}86 </InputGroupAddon>87 {children}88 </InputGroup>89 )90}9192function ComboboxContent({93 className,94 side = "bottom",95 sideOffset = 6,96 align = "start",97 alignOffset = 0,98 anchor,99 ...props100// … truncated
What it pulls in
npm packages
Other registry items
