import type { Meta, StoryObj } from "@storybook/react-vite" import { Separator } from "@hm-design/ui" import { StateBoard } from "@/components/story-board" import { STORY_KICKER, StoryPage, StoryPageHeader, StorySection } from "@/components/story-page" const meta = { title: "Components/Data & Display/Separator", component: Separator, parameters: { layout: "padded", docs: { description: { component: "현재 HM 규격: 1px 선, 색은 pale warm neutral(Primitive 참조). Radix Separator의 orientation과 decorative(기본 true) API를 유지합니다. decorative=false이면 role=separator가 노출됩니다.", }, }, }, argTypes: { orientation: { control: "inline-radio", options: ["horizontal", "vertical"] }, decorative: { control: "boolean" } }, } satisfies Meta export default meta type Story = StoryObj export const All: Story = { name: "Separator", parameters: { layout: "fullscreen", controls: { disable: true } }, render: () => (
제목

제목에 연결된 설명입니다.

Below ), }, ]} />
Left Middle Right ), }, { id: "semantic", label: "Semantic (decorative=false)", noteAfter: true, note: "decorative=false는 role=separator와 aria-orientation을 노출합니다.", children: (
Section A Section B
), }, ]} />
), } export const Horizontal: Story = { tags: ["verification"], render: () =>
} export const Vertical: Story = { tags: ["verification"], render: () =>
}