Select Glass
shadcn-glass-ui/select-glassFreeComponent
Glass-themed select dropdown with compound component API for flexible composition. * Built on @radix-ui/react-select for accessibility, keyboard navigation, and robust selection behavior. * * ## Features
Install it
npx shadcn@latest add https://raw.githubusercontent.com/artyhoo/shadcn-glass-ui-library/main/public/r/select-glass.jsonSource
1/**2 * SelectGlass Component3 *4 * Glass-themed select dropdown with compound component API for flexible composition.5 * Built on @radix-ui/react-select for accessibility, keyboard navigation, and robust selection behavior.6 *7 * ## Features8 * - Compound API with 9 sub-components for maximum flexibility9 * - Full shadcn/ui API compatibility (drop-in replacement)10 * - Keyboard navigation (Arrow keys, Enter, Escape, Home/End)11 * - Grouped options with labels and separators12 * - Custom scroll buttons for long lists13 * - Glass morphism styling with theme-aware CSS variables14 * - Accessible ARIA attributes and focus management15 * - Type-safe value handling with TypeScript generics16 *17 * ## CSS Variables18 * - `--input-bg` - Trigger button background19 * - `--input-border` - Trigger button border color20 * - `--input-text` - Trigger button text color21 * - `--dropdown-bg` - Content background22 * - `--dropdown-border` - Content border color23 * - `--dropdown-item-hover` - Item hover background24 * - `--dropdown-item-text` - Item text color25 * - `--dropdown-glow` - Content box shadow26 * - `--text-secondary` - Scroll button icon color27 *28 * @example Basic usage29 * ```tsx30 * import { SelectGlass, SelectGlassTrigger, SelectGlassValue, SelectGlassContent, SelectGlassItem } from 'shadcn-glass-ui'31 *32 * <SelectGlass>33 * <SelectGlassTrigger className="w-[180px]">34 * <SelectGlassValue placeholder="Select a fruit" />35 * </SelectGlassTrigger>36 * <SelectGlassContent>37 * <SelectGlassItem value="apple">Apple</SelectGlassItem>38 * <SelectGlassItem value="banana">Banana</SelectGlassItem>39 * <SelectGlassItem value="orange">Orange</SelectGlassItem>40 * </SelectGlassContent>41 * </SelectGlass>42 * ```43 *44 * @example With groups and labels45 * ```tsx46 * <SelectGlass>47 * <SelectGlassTrigger className="w-[200px]">48 * <SelectGlassValue placeholder="Select a framework" />49 * </SelectGlassTrigger>50 * <SelectGlassContent>51 * <SelectGlassGroup>52 * <SelectGlassLabel>Frontend</SelectGlassLabel>53 * <SelectGlassItem value="react">React</SelectGlassItem>54 * <SelectGlassItem value="vue">Vue</SelectGlassItem>55 * </SelectGlassGroup>56 * <SelectGlassSeparator />57 * <SelectGlassGroup>58 * <SelectGlassLabel>Backend</SelectGlassLabel>59 * <SelectGlassItem value="node">Node.js</SelectGlassItem>60 * <SelectGlassItem value="python">Python</SelectGlassItem>61 * </SelectGlassGroup>62 * </SelectGlassContent>63 * </SelectGlass>64// … 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 |
