import { Alert, AlertDescription, AlertTitle, Badge } from "@ai-ui/ui"; import type { Meta, StoryObj } from "@storybook/react"; function SparkIcon() { return ( ); } const meta = { title: "Components/Alert", component: Alert, args: { variant: "default" }, argTypes: { className: { control: false }, icon: { control: false }, variant: { control: "radio", options: ["default", "success", "warning", "destructive"] } }, parameters: { layout: "centered" }, tags: ["autodocs"] } satisfies Meta; export default meta; type Story = StoryObj; export const Playground: Story = { render: (args) => ( }> Release status updated The approval chain changed. Review the new ownership before publishing. ) }; export const Variants: Story = { render: () => (
}> Informational callout Pair with a live badge when status can change in real time. } variant="success"> Release approved All reviewers signed off and rollout can begin. } variant="warning"> Missing follow-up One checklist item is still unresolved for this launch. } variant="destructive"> Publishing blocked Resolve validation issues before trying again.
) };