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>
74 lines
1.4 KiB
TypeScript
74 lines
1.4 KiB
TypeScript
/**
|
|
* Loading Button Stories
|
|
* @generated 2025-12-11T14:37:52.611264
|
|
*/
|
|
import type { Meta, StoryObj } from '@storybook/preact';
|
|
import { LoadingButton, type LoadingButtonProps } from '../src/atoms/LoadingButton';
|
|
|
|
const meta: Meta<LoadingButtonProps> = {
|
|
title: '2. Atoms/LoadingButton',
|
|
component: LoadingButton,
|
|
tags: ['autodocs'],
|
|
parameters: {
|
|
docs: {
|
|
description: {
|
|
component: `Auto-generated LoadingButton component
|
|
|
|
**Classification:** atom
|
|
**Slots:** label
|
|
**Figma ID:** 11:1126`
|
|
}
|
|
}
|
|
},
|
|
argTypes: {
|
|
roundness: {
|
|
control: 'select',
|
|
options: ['Default', 'Round'],
|
|
description: 'Roundness variant',
|
|
},
|
|
size: {
|
|
control: 'select',
|
|
options: ['Large', 'Mini', 'Regular', 'Small'],
|
|
description: 'Size variant',
|
|
},
|
|
state: {
|
|
control: 'select',
|
|
options: ['Default', 'Focus', 'Hover & Active'],
|
|
description: 'State variant',
|
|
},
|
|
},
|
|
};
|
|
|
|
export default meta;
|
|
type Story = StoryObj<LoadingButtonProps>;
|
|
|
|
export const Default: Story = {
|
|
args: {
|
|
roundness: 'Default',
|
|
size: 'Large',
|
|
state: 'Default',
|
|
children: 'LoadingButton'
|
|
},
|
|
};
|
|
|
|
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',
|
|
},
|
|
};
|