Holiday sale: 40% off Pro with code · limited offer · ends Dec 31
See ProA centered search palette on a thick frosted glass panel with a refractive rim. Fuzzy matching scores consecutive letters and word starts and highlights the matched characters, results are grouped by category with counts and tab switching, and every new result set springs in row by row under a sliding accent highlight. Full combobox semantics with arrow keys, Enter, Escape and a Ctrl or Cmd K hotkey, an open and close spring with blur, light and dark glass, and instant motion under reduced motion.
Included in Pro and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
The copied code, markdown and prompt include the values you set here.
import { CommandPaletteGlass } from "@/components/hyperblur-pro/command-palette-glass"
<CommandPaletteGlass />
const [open, setOpen] = useState(false);
<GlassCommandPalette
open={open}
onOpenChange={setOpen}
items={[{ id: "new", title: "New note", category: "Actions", shortcut: "N" }]}
onSelect={(item) => run(item.id)}
/>| Prop | Type | Default | Description |
|---|---|---|---|
| items | CommandItem[] | DEFAULT_COMMANDS | Entries with id, title, subtitle, category, keywords, shortcut, and either two gradient colors with an SVG glyph or an image. |
| open / defaultOpen | boolean | true | GlassCommandPalette: controlled or uncontrolled visibility. |
| onOpenChange | (open: boolean) => void | undefined | GlassCommandPalette: called on Escape, selection or the hotkey. |
| onSelect | (item: CommandItem) => void | undefined | Called with the chosen entry. |
| placeholder | string | "Search apps, actions, files and people" | GlassCommandPalette: input placeholder. |
| appearance | "light" | "dark" | "auto" | "light" | Panel glass tint and text color. |
| accent | string | "#e5484d" | Highlight pill and matched character color. |
| hotkey | boolean | true | GlassCommandPalette: Ctrl K or Cmd K toggles the palette. |
| refraction | number | 1 | Strength of the glass edge lens. |
| image / title | string | "https://images.unsplash.com/photo-1477346611705-65d1883cee1e" | CommandPaletteGlass: backdrop photo and the hint above the palette. |
Source code is included in Pro and above