import { Meta, Title, Subtitle, Description, Primary, Controls, Stories, Canvas } from '@storybook/addon-docs/blocks';
import * as CommandStories from './command.stories';

<Meta of={CommandStories} />

<Title />
<Subtitle>A search-driven command palette for executing actions via keyboard.</Subtitle>

<Description />

<Primary />

---

## Variations

<Stories />

---

## AI Best Practices

> [!IMPORTANT]
> - **Keyboard Trigger** — Always register the `⌘K` or `Ctrl+K` shortcut when using `CommandDialog`.
> - **Empty State** — Include a `CommandEmpty` component to handle cases with no search results.
> - **Modal Closing** — Ensure the palette closes after a successfull `onSelect` action by updating the `open` state.
