Skip to main content

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

PropTypeDefaultDescription
placeholderstringSearch placeholder
groupsCommandGroup[]requiredCommand groups