Component

Command

Provides a searchable, keyboard-driven command palette.

Install

Run the CLI to copy the source into your project.

pnpm dlx @stalk-ui/cli add @stalk-ui/command

Examples

Live previews render through the docs app's PandaCSS codegen.

Theme
<Command label="Command menu" style={{ maxWidth: '24rem', border: '1px solid' }}>
  <Command.Input aria-label="Search commands" placeholder="Type a command or search…" />
  <Command.List>
    <Command.Empty>No results found.</Command.Empty>
    <Command.Group heading="Suggestions">
      <Command.Item>Calendar</Command.Item>
      <Command.Item>Search emoji</Command.Item>
    </Command.Group>
    <Command.Separator />
    <Command.Group heading="Settings">
      <Command.Item>
        Profile<Command.Shortcut>⌘P</Command.Shortcut>
      </Command.Item>
      <Command.Item>
        Settings<Command.Shortcut>⌘S</Command.Shortcut>
      </Command.Item>
    </Command.Group>
  </Command.List>
</Command>

Props

Public component props extracted from the source TypeScript types.

No component-specific props are documented yet — the component accepts the underlying element's standard props.

Variants

Variant axes exposed by the underlying PandaCSS recipe or slot recipe.

No recipe variants are documented for this component.

Registry

Files this component contributes to your registry install.

  • Manifest: `/r/command.json`
  • Recipe: `command`
  • Files: `src/components/ui/command.tsx`