import type { Meta, StoryObj } from "@storybook/react-vite" import { InfoIcon, TriangleAlertIcon } from "lucide-react" import { Alert, AlertDescription, AlertTitle } from "@hm-design/ui" import { StateBoard } from "@/components/story-board" import { STORY_KICKER, StoryPage, StoryPageHeader, StorySection } from "@/components/story-page" const meta = { title: "Components/Feedback/Alert", component: Alert, parameters: { layout: "padded", docs: { description: { component: "현재 HM 규격: 인라인 메시지(Toast 아님). padding 12/16, radius 4, border 1px, Title 14/20/500, Description 14/20/400. variant는 default(neutral)와 destructive만 둡니다. success·warning·information은 HM 상태 색이 정해지지 않아 만들지 않았습니다. 닫기 동작은 없습니다.", }, }, }, argTypes: { variant: { control: "inline-radio", options: ["default", "destructive"] } }, } satisfies Meta export default meta type Story = StoryObj export const All: Story = { name: "Alert", parameters: { layout: "fullscreen", controls: { disable: true } }, render: () => ( Title only layout Without an icon the text starts at the left edge. ), }, { id: "title-only", label: "Title only", children: ( ), }, { id: "long", label: "Long content", children: (
), }, ]} />
), } export const Default: Story = { tags: ["verification"], render: () => ( ), } export const Destructive: Story = { tags: ["verification"], render: () => ( ), }