Palette

Workspace

No command matches

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-palette

About this component

A command menu card. Type to filter and the matching letters stay in full ink, move with the arrow keys or the pointer and one highlight plate slides between rows, and Enter runs the command: its keycaps press, the plate flashes jade and a line confirms it.

Triggers

  • Focus
  • State change
  • Click
  • Spring
  • Card
  • Keyframe

Techniques

  • CSS transition
  • Keyframes
  • State machine
  • CSS variables
  • Pseudo elements
  • Spring

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

The search is a native text input with an aria-label, and every command is a native <button>; hidden rows leave the tab order. Arrow keys move the highlight from the field or a row, Enter runs it, and the result line is aria-live="polite". Keycaps and icons are aria-hidden. Rows and the field have :focus-visible outlines in the accent.

Reduced motion

The plate jumps, the caret holds still and the flash is skipped.

Use it in anything you build, commercial and client work included. Licence

More cards

See all

Low Sun

Ora Vale

PlayerGet code

Delete workspace

northwind
PurgeGet code

New checkout

Rolling out
RolloutGet code
3 lights on
RoomGet code