Files
dss/packages/dss-ui/stories/ToggleButton.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

92 lines
1.8 KiB
TypeScript

/**
* Toggle Button Stories
* @generated 2025-12-11T14:37:52.651316
*/
import type { Meta, StoryObj } from '@storybook/preact';
import { ToggleButton, type ToggleButtonProps } from '../src/atoms/ToggleButton';
const meta: Meta<ToggleButtonProps> = {
title: '2. Atoms/ToggleButton',
component: ToggleButton,
tags: ['autodocs'],
parameters: {
docs: {
description: {
component: `Auto-generated ToggleButton component
**Classification:** atom
**Slots:** icon, label
**Figma ID:** 816:112827`
}
}
},
argTypes: {
roundness: {
control: 'select',
options: ['Default', 'Round'],
description: 'Roundness variant',
},
skin: {
control: 'select',
options: ['Ghost', 'Outlined'],
description: 'Skin variant',
},
size: {
control: 'select',
options: ['Large', 'Mini', 'Regular', 'Small'],
description: 'Size variant',
},
position: {
control: 'select',
options: ['Left', 'Middle', 'Right', 'Single'],
description: 'Position variant',
},
active: {
control: 'select',
options: ['false', 'true'],
description: 'Active variant',
},
state: {
control: 'select',
options: ['Default', 'Disabled', 'Focus'],
description: 'State variant',
},
},
};
export default meta;
type Story = StoryObj<ToggleButtonProps>;
export const Default: Story = {
args: {
roundness: 'Default',
skin: 'Ghost',
size: 'Large',
position: 'Left',
active: 'false',
state: 'Default',
children: 'ToggleButton'
},
};
export const SizeLarge: Story = {
args: {
...Default.args,
size: 'Large',
},
};
export const SizeMini: Story = {
args: {
...Default.args,
size: 'Mini',
},
};
export const SizeRegular: Story = {
args: {
...Default.args,
size: 'Regular',
},
};