tpmjs/packages/storybook/stories/Button.stories.ts
Ajax Davis e95bea6847 fix(lint): configure Biome to properly ignore build directories
- Add root biome.json that extends packages/config/biome.json
- Add explicit ignore patterns for dist/, build/, .next/, .turbo/, etc.
- Make a11y lints warnings instead of errors (non-blocking)
- Remove invalid biome-ignore comment from Section.tsx
- Apply formatting to all source files (155 files checked, 129 fixed)

This fixes the CI format check that was failing with 2064+ errors
because Biome was checking generated files in dist/ and .turbo/.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 22:49:45 +10:00

69 lines
1.1 KiB
TypeScript

import type { Meta, StoryObj } from '@storybook/react';
import { Button } from '@tpmjs/ui/Button/Button';
const meta = {
title: 'Components/Button',
component: Button,
parameters: {
layout: 'centered',
},
tags: ['autodocs'],
} satisfies Meta<typeof Button>;
export default meta;
type Story = StoryObj<typeof meta>;
export const Default: Story = {
args: {
children: 'Button',
},
};
export const Destructive: Story = {
args: {
variant: 'destructive',
children: 'Delete',
},
};
export const Outline: Story = {
args: {
variant: 'outline',
children: 'Outline',
},
};
export const Secondary: Story = {
args: {
variant: 'secondary',
children: 'Secondary',
},
};
export const Ghost: Story = {
args: {
variant: 'ghost',
children: 'Ghost',
},
};
export const Link: Story = {
args: {
variant: 'link',
children: 'Link',
},
};
export const Large: Story = {
args: {
size: 'lg',
children: 'Large Button',
},
};
export const Small: Story = {
args: {
size: 'sm',
children: 'Small Button',
},
};