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

47 lines
995 B
TypeScript

/**
* Checkbox Stories
* @generated 2025-12-11T14:37:52.577154
*/
import type { Meta, StoryObj } from '@storybook/preact';
import { Checkbox, type CheckboxProps } from '../src/atoms/Checkbox';
const meta: Meta<CheckboxProps> = {
title: '2. Atoms/Checkbox',
component: Checkbox,
tags: ['autodocs'],
parameters: {
docs: {
description: {
component: `Auto-generated Checkbox component
**Classification:** atom
**Slots:** icon
**Figma ID:** 16:1790`
}
}
},
argTypes: {
checked: {
control: 'select',
options: ['Indeterminate', 'false', 'true'],
description: 'Checked variant',
},
state: {
control: 'select',
options: ['Default', 'Disabled', 'Error', 'Error Focus', 'Focus'],
description: 'State variant',
},
},
};
export default meta;
type Story = StoryObj<CheckboxProps>;
export const Default: Story = {
args: {
checked: 'Indeterminate',
state: 'Default',
children: 'Checkbox'
},
};