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

74 lines
1.4 KiB
TypeScript

/**
* Tab Stories
* @generated 2025-12-11T14:37:52.648877
*/
import type { Meta, StoryObj } from '@storybook/preact';
import { Tab, type TabProps } from '../src/atoms/Tab';
const meta: Meta<TabProps> = {
title: '2. Atoms/Tab',
component: Tab,
tags: ['autodocs'],
parameters: {
docs: {
description: {
component: `Auto-generated Tab component
**Classification:** atom
**Slots:** icon, label
**Figma ID:** 9:634`
}
}
},
argTypes: {
size: {
control: 'select',
options: ['Large', 'Regular', 'Small'],
description: 'Size variant',
},
content: {
control: 'select',
options: ['Icon', 'Icon + Label', 'Label'],
description: 'Content variant',
},
state: {
control: 'select',
options: ['Active', 'Active Focus', 'Disabled', 'Inactive', 'Inactive Focus', 'Inactive Hover'],
description: 'State variant',
},
},
};
export default meta;
type Story = StoryObj<TabProps>;
export const Default: Story = {
args: {
size: 'Large',
content: 'Icon',
state: 'Active',
children: 'Tab'
},
};
export const SizeLarge: Story = {
args: {
...Default.args,
size: 'Large',
},
};
export const SizeRegular: Story = {
args: {
...Default.args,
size: 'Regular',
},
};
export const SizeSmall: Story = {
args: {
...Default.args,
size: 'Small',
},
};