import { Canvas, Meta } from '@storybook/blocks';
import * as ContextMenuStories from './context-menu.stories';

<Meta title="Primitives/Context Menu" />

# Context Menu

#### Displays a menu to the user—such as a set of actions or functions—triggered by a button.

<Canvas sourceState="hidden" of={ContextMenuStories.Default} height="300px" />

## Features

- ✅ Supports submenus with configurable reading direction.
- ✅ Supports items, labels, groups of items.
- ✅ Supports checkable items (single or multiple) with optional indeterminate state.
- ✅ Supports modal and non-modal modes.
- ✅ Customize side, alignment, offsets, collision handling.
- ✅ Focus is fully managed.
- ✅ Full keyboard navigation.
- ✅ Typeahead support.
- ✅ Dismissing and layering behavior is highly customizable.
- ✅ Triggers with a long press on touch devices
