feat(dss-ui): Button component with design tokens only
Some checks failed
DSS Project Analysis / dss-context-update (push) Has been cancelled
Some checks failed
DSS Project Analysis / dss-context-update (push) Has been cancelled
- 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>
This commit is contained in:
73
packages/dss-ui/stories/LinkButton.stories.tsx
Normal file
73
packages/dss-ui/stories/LinkButton.stories.tsx
Normal file
@@ -0,0 +1,73 @@
|
||||
/**
|
||||
* Link Button Stories
|
||||
* @generated 2025-12-11T14:37:52.610405
|
||||
*/
|
||||
import type { Meta, StoryObj } from '@storybook/preact';
|
||||
import { LinkButton, type LinkButtonProps } from '../src/atoms/LinkButton';
|
||||
|
||||
const meta: Meta<LinkButtonProps> = {
|
||||
title: '2. Atoms/LinkButton',
|
||||
component: LinkButton,
|
||||
tags: ['autodocs'],
|
||||
parameters: {
|
||||
docs: {
|
||||
description: {
|
||||
component: `Auto-generated LinkButton component
|
||||
|
||||
**Classification:** atom
|
||||
**Slots:** icon, label
|
||||
**Figma ID:** 11:2014`
|
||||
}
|
||||
}
|
||||
},
|
||||
argTypes: {
|
||||
roundness: {
|
||||
control: 'select',
|
||||
options: ['Default', 'Round'],
|
||||
description: 'Roundness variant',
|
||||
},
|
||||
size: {
|
||||
control: 'select',
|
||||
options: ['Default', 'Large', 'Mini', 'Small'],
|
||||
description: 'Size variant',
|
||||
},
|
||||
state: {
|
||||
control: 'select',
|
||||
options: ['Default', 'Focus', 'Hover & Active'],
|
||||
description: 'State variant',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default meta;
|
||||
type Story = StoryObj<LinkButtonProps>;
|
||||
|
||||
export const Default: Story = {
|
||||
args: {
|
||||
roundness: 'Default',
|
||||
size: 'Default',
|
||||
state: 'Default',
|
||||
children: 'LinkButton'
|
||||
},
|
||||
};
|
||||
|
||||
export const SizeDefault: Story = {
|
||||
args: {
|
||||
...Default.args,
|
||||
size: 'Default',
|
||||
},
|
||||
};
|
||||
|
||||
export const SizeLarge: Story = {
|
||||
args: {
|
||||
...Default.args,
|
||||
size: 'Large',
|
||||
},
|
||||
};
|
||||
|
||||
export const SizeMini: Story = {
|
||||
args: {
|
||||
...Default.args,
|
||||
size: 'Mini',
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user