Files
dss/packages/dss-ui/stories/MenuItem.stories.tsx
DSS 09b234a07f
Some checks failed
DSS Project Analysis / dss-context-update (push) Has been cancelled
feat(dss-ui): Button component with design tokens only
- Button.css uses only CSS custom properties, no fallbacks
- Token validator now blocks hardcoded values (strict_mode: true)
- Hook scripts converted from ESM (.js) to CommonJS (.cjs)
- Storybook unified config with HMR disabled for nginx proxy
- Added dss-ui package with Figma-synced components and stories

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-11 18:47:57 -03:00

67 lines
1.3 KiB
TypeScript

/**
* Menu Item Stories
* @generated 2025-12-11T14:37:52.624404
*/
import type { Meta, StoryObj } from '@storybook/preact';
import { MenuItem, type MenuItemProps } from '../src/atoms/MenuItem';
const meta: Meta<MenuItemProps> = {
title: '2. Atoms/MenuItem',
component: MenuItem,
tags: ['autodocs'],
parameters: {
docs: {
description: {
component: `Auto-generated MenuItem component
**Classification:** atom
**Slots:** None
**Figma ID:** 18:1010`
}
}
},
argTypes: {
size: {
control: 'select',
options: ['Large', 'Regular'],
description: 'Size variant',
},
type: {
control: 'select',
options: ['Default', 'Destructive'],
description: 'Type variant',
},
state: {
control: 'select',
options: ['Active', 'Default', 'Disabled', 'Focus', 'Hover', 'Selected'],
description: 'State variant',
},
},
};
export default meta;
type Story = StoryObj<MenuItemProps>;
export const Default: Story = {
args: {
size: 'Large',
type: 'Default',
state: 'Active',
children: 'MenuItem'
},
};
export const SizeLarge: Story = {
args: {
...Default.args,
size: 'Large',
},
};
export const SizeRegular: Story = {
args: {
...Default.args,
size: 'Regular',
},
};