command
search and run a command from a flat list or a raised palette. the highlighted row follows the pointer or keys, while groups and shortcuts keep their place.
bunx --bun shadcn@latest add @mk/commandexample
type to filter, use the arrow keys to move and press enter to select. the palette opens the same commands in a sheet.
no command run yet
no command run yet
open
the palette printed as a sheet, with its search field, grouped commands and shortcuts. the disabled build action stays in view.
draws where a floating layer meets the page, under its soft lift
states
highlight marks the next command to run. a search with no match explains the miss, and disabled commands cannot be selected.
rest
flat command row
highlighted
keys position, hover fill
disabled
skipped by the arrow keys
no commands match. try another word.
empty
search keeps its value; the list explains the miss
search, focus
field box owns the inside edge
search, disabled
disabled input ink
rest
flat command row
highlighted
keys position, hover fill
disabled
skipped by the arrow keys
no commands match. try another word.
empty
search keeps its value; the list explains the miss
search, focus
field box owns the inside edge
search, disabled
disabled input ink