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>
47 lines
911 B
TypeScript
47 lines
911 B
TypeScript
/**
|
|
* Alert Stories
|
|
* @generated 2025-12-11T14:37:52.563973
|
|
*/
|
|
import type { Meta, StoryObj } from '@storybook/preact';
|
|
import { Alert, type AlertProps } from '../src/atoms/Alert';
|
|
|
|
const meta: Meta<AlertProps> = {
|
|
title: '3. Molecules/Alert',
|
|
component: Alert,
|
|
tags: ['autodocs'],
|
|
parameters: {
|
|
docs: {
|
|
description: {
|
|
component: `Auto-generated Alert component
|
|
|
|
**Classification:** molecule
|
|
**Slots:** None
|
|
**Figma ID:** 58:5416`
|
|
}
|
|
}
|
|
},
|
|
argTypes: {
|
|
type: {
|
|
control: 'select',
|
|
options: ['Error', 'Neutral'],
|
|
description: 'Type variant',
|
|
},
|
|
flipIcon: {
|
|
control: 'select',
|
|
options: ['false', 'true'],
|
|
description: 'Flip Icon variant',
|
|
},
|
|
},
|
|
};
|
|
|
|
export default meta;
|
|
type Story = StoryObj<AlertProps>;
|
|
|
|
export const Default: Story = {
|
|
args: {
|
|
type: 'Error',
|
|
flipIcon: 'false',
|
|
children: 'Alert'
|
|
},
|
|
};
|