import type { Meta, StoryObj } from '@storybook/react' import { Typography } from '../Typography' import { Separator } from './Separator' const meta = { title: 'Blocks/Separator', component: Separator, argTypes: { orientation: { control: { type: 'select' }, options: ['horizontal', 'vertical'], table: { type: { summary: 'horizontal | vertical' }, defaultValue: { summary: 'horizontal' }, }, }, decorative: { description: 'Whether the separator is decorative (not announced by screen readers).', control: 'boolean', table: { type: { summary: 'boolean' }, defaultValue: { summary: 'true' }, }, }, className: { description: 'Additional CSS classes to apply to the separator.', control: 'text', table: { type: { summary: 'string' }, }, }, }, args: { orientation: 'horizontal', decorative: true, }, } satisfies Meta export default meta type Story = StoryObj export const Default: Story = { args: { orientation: 'horizontal', className: '', }, render: (args) => (
), } export const Horizontal: Story = { args: { orientation: 'horizontal', }, } export const Vertical: Story = { args: { orientation: 'vertical', }, render: (_args) => (
Left Right
), } export const CustomStyling: Story = { args: { className: 'bg-red-500 h-2', }, } export const InContent: Story = { render: (_args) => (
Section 1 This is the first section content.
Section 2 This is the second section content.
Section 3 This is the third section content.
), } export const NavigationExample: Story = { render: (_args) => ( ), }