Combobox Glass
shadcn-glass-ui/combobox-glassFreeComponent
Glass-themed combobox (searchable select) combining autocomplete and dropdown functionality. * Built on Radix UI Popover and cmdk for robust keyboard navigation and filtering. * * ## Features
Install it
npx shadcn@latest add https://raw.githubusercontent.com/artyhoo/shadcn-glass-ui-library/main/public/r/combobox-glass.jsonSource
1/**2 * ComboBoxGlass Component3 *4 * Glass-themed combobox (searchable select) combining autocomplete and dropdown functionality.5 * Built on Radix UI Popover and cmdk for robust keyboard navigation and filtering.6 *7 * ## Features8 * - Search/filter functionality with real-time results9 * - Keyboard navigation (Arrow keys, Enter, Escape, Tab)10 * - Optional FormFieldWrapper integration (label, error, success states)11 * - Size variants (sm, md, lg, xl) via InputGlass variants12 * - Icon support for both trigger button and individual options13 * - Glass variant styles (glass, frosted, fluted, crystal)14 * - Clearable selection (click selected item to deselect)15 * - Customizable empty state and search placeholder16 * - Disabled state with visual feedback17 * - Popover positioning (side, align) configuration18 *19 * ## CSS Variables20 * - `--input-bg` - Trigger button background21 * - `--input-border` - Trigger button border22 * - `--input-text` - Trigger button text23 * - `--dropdown-bg` - Content background24 * - `--dropdown-border` - Content border25 * - `--dropdown-item-hover` - Item hover background26 * - `--dropdown-item-text` - Item text color27 * - `--dropdown-icon` - Option icon color28 * - `--dropdown-glow` - Content box shadow29 * - `--text-accent` - Check icon color when selected30 * - `--text-muted` - Search icon and empty state text31 *32 * @example Basic usage33 * ```tsx34 * import { ComboBoxGlass, type ComboBoxOption } from 'shadcn-glass-ui'35 * import { useState } from 'react'36 *37 * const options: ComboBoxOption[] = [38 * { value: 'react', label: 'React' },39 * { value: 'vue', label: 'Vue' },40 * { value: 'angular', label: 'Angular' },41 * ]42 *43 * function FrameworkSelector() {44 * const [value, setValue] = useState<string>()45 * return (46 * <ComboBoxGlass47 * options={options}48 * value={value}49 * onValueChange={setValue}50 * placeholder="Select framework..."51 * />52 * )53 * }54 * ```55 *56 * @example With form field wrapper57 * ```tsx58 * <ComboBoxGlass59 * options={countries}60 * value={country}61 * onValueChange={setCountry}62 * label="Country"63 * error="Please select a country"64 * required65 * placeholder="Select country..."66 * />67 * ```68 *69 * @example With icons70 * ```tsx71 * import { MapPin, Building } from 'lucide-react'72 *73 * const options: ComboBoxOption[] = [74 * { value: 'us', label: 'United States', icon: MapPin },75 * { value: 'uk', label: 'United Kingdom', icon: MapPin },76 * ]77 *78 * <ComboBoxGlass79// … truncated
More from shadcn-glass-ui
All 76 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Alert Glassalert-glass | shadcn-glass-ui | Components | Free | no deps | |
| Animated Background Glassanimated-background-glass | shadcn-glass-ui | Components | Free | no deps | |
| Avatar Glassavatar-glass | shadcn-glass-ui | Components | Free | no deps | |
| Badge Glassbadge-glass | shadcn-glass-ui | Components | Free | no deps | |
| Base Progress Glassbase-progress-glass | shadcn-glass-ui | Components | Free | no deps | |
| Button Glassbutton-glass | shadcn-glass-ui | Components | Free | no deps | |
| Card Glasscard-glass | shadcn-glass-ui | Components | Free | no deps | |
| Checkbox Glasscheckbox-glass | shadcn-glass-ui | Components | Free | no deps |
