// @ts-nocheck import * as mod from "./context-menu" const docs = `### Overview Context menu for right-click interactions with composable items and submenus. Use \`ItemLabel\` and \`ItemDescription\` for rich items. ### API - Root accepts Kobalte ContextMenu props (\`open\`, \`defaultOpen\`, \`onOpenChange\`). - Compose \`Trigger\`, \`Content\`, \`Item\`, \`Separator\`, and optional \`Sub\` sections. ### Variants and states - Supports grouped sections and nested submenus. ### Behavior - Opens on context menu gesture over the trigger element. ### Accessibility - TODO: confirm keyboard and focus behavior from Kobalte. ### Theming/tokens - Uses \`data-component="context-menu"\` and slot attributes for styling. ` export default { title: "UI/ContextMenu", id: "components-context-menu", component: mod.ContextMenu, tags: ["autodocs"], parameters: { docs: { description: { component: docs, }, }, }, } export const Basic = { render: () => (
Right click (or open) here
Actions Copy Paste More Duplicate Move
), } export const CheckboxRadio = { render: () => (
Right click (or open) here
Show line numbers Wrap lines Compact Comfortable
), }