Command
Command palette for search and quick actions.
Import
import { Command } from '@kikumi3n/ui';
Usage
<Command
placeholder="Type a command..."
groups={[
{ heading: 'Actions', items: [
{ label: 'New File', onSelect: () => {} },
{ label: 'Search', onSelect: () => {} },
]},
]}
/>
API
| Prop | Type | Default | Description |
|---|---|---|---|
placeholder | string | — | Search placeholder |
groups | CommandGroup[] | required | Command groups |