Local guide ↗ import { Command } from "bits-ui"

Inline palette

Built-in ranked filtering includes each item’s value, text and keywords

No command run yet

Dialog palette

A modal command surface toggled by its trigger or Cmd/Ctrl+K

Press Cmd/Ctrl+K while this demo is mounted.

Each Command.Item requires a unique value; optional keywords add aliases to the default scoring filter. A custom filter must return a score from 0 to 1, where 0 hides the item entirely.

The list height computed by Command.Viewport is exposed as --bits-command-list-height. Cmd/Ctrl+K is an application convention rather than a Command prop; register it only for the owning surface and remove the listener when that surface is destroyed.