Glow Command

A command menu with a dithered light on the active row.

Glow Command over an app
Still frame

Installation

pnpm dlx shadcn@latest add @gradients-pro/glow-command

Needs a Pro account and the Pro registry setup.

Usage

import { GlowCommand } from "@/components/glow-command";

<GlowCommand items={items} onSelect={(value) => open(value)} />;

Props

PropTypeDefaultDescription
itemsGlowCommandItem[]requiredThe commands: value, label, and optional group, shortcut, icon and keywords. Items keep their order within a group.
onSelect(value: string) => voidnoneCalled on Enter or click.
labelstring"Search commands"Accessible name for the search field and list.
placeholderstring"Type a command or search…"Placeholder for the search field.
emptyReactNode"No results"Shown when nothing matches.
palette"ultramarine" | "ember" | "mono" | string[]"ultramarine"A curated ramp, or your own 2 to 6 CSS colours from faint to hot (var(--x) included). Curated ramps switch between a light and a dark version with your theme.
cellnumber2Size of one dither cell in CSS pixels.
scheme"light" | "dark"follows the pageForces a colour scheme. By default it reads a dark or light class (or data-theme) on <html>, then the system setting.
className, other div propsPassed to the outer box.