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 approvedAll reviewers signed off and rollout can begin.} variant="warning">
Missing follow-upOne checklist item is still unresolved for this launch.} variant="destructive">
Publishing blockedResolve validation issues before trying again.