import type { Meta, StoryObj } from '@storybook/nextjs' import { ContextMenu } from './ContextMenu' const meta = { component: ContextMenu, parameters: { docs: { description: { component: 'Right-click on the trigger element to open the context menu.', }, }, }, } satisfies Meta export default meta type Story = StoryObj export const Default: Story = { args: { TriggerElement: (
Right-click here
), ContextMenuElement: Menu Item, onClick: () => {}, }, } export const WithIcon: Story = { args: { TriggerElement: (
Right-click to see icon menu
), ContextMenuElement: (
🔧 Settings
), onClick: () => {}, }, }