import type { Meta, StoryObj } from '@storybook/react-vite' import { Button } from './Button' import { Separator } from './Separator' const meta = { title: 'Layout/Separator', component: Separator, tags: ['autodocs'], parameters: { docs: { description: { component: 'A thin rule between groups of content, built on Base UI Separator (`role="separator"` with `aria-orientation`). Add a `label` such as "or" in the middle, and use `dashed` for a lighter break. Vertical separators stretch to the height of their flex row.', }, }, }, argTypes: { orientation: { control: 'inline-radio', options: ['horizontal', 'vertical'], table: { defaultValue: { summary: 'horizontal' } } }, variant: { control: 'inline-radio', options: ['solid', 'dashed'], table: { defaultValue: { summary: 'solid' } } }, label: { control: 'text' }, className: { control: 'text' }, }, args: { orientation: 'horizontal', variant: 'solid', }, } satisfies Meta export default meta type Story = StoryObj export const Playground: Story = { render: (args) => (
Account Billing
), } export const Horizontal: Story = { render: () => (

Jane Doe

jane.doe@example.com

Member of Acme Corporation since March 2021.

Dashed separators work well inside forms and lists.

), } export const Vertical: Story = { render: () => (
), } export const WithLabel: Story = { parameters: { docs: { description: { story: 'A label in the middle, e.g. between two sign-in methods.' } } }, render: () => (

Last signed in 2 hours ago from Lisbon.

), } export const VerticalWithLabel: Story = { render: () => (
Upload a file
Paste a link
), }