import type { Meta, StoryObj } from '@storybook/react' import { Terminal, AlertCircle } from 'lucide-react' import { Alert, AlertTitle, AlertDescription } from '@/components/ui/alert' const meta = { title: 'Feedback/Alert', component: Alert, tags: ['autodocs'], parameters: { layout: 'centered' }, argTypes: { variant: { control: 'select', options: ['default', 'destructive'], }, }, decorators: [ (Story) => (
), ], } satisfies Meta export default meta type Story = StoryObj export const Default: Story = { render: () => ( Heads up! You can add components to your app using the CLI. ), } export const Destructive: Story = { render: () => ( Error Your session has expired. Please log in again. ), } export const WithoutIcon: Story = { render: () => ( Note This alert has no icon, just a title and description. ), } export const TitleOnly: Story = { render: () => ( A simple alert with only a title. ), }