import { Divider } from "./index"; import { DocsPage } from "@shared/stories/DocsTemplate"; import type { Meta, StoryObj } from "@storybook/react"; const meta: Meta = { title: "Components/Divider", component: Divider, tags: ["autodocs"], parameters: { layout: "centered", docs: { page: DocsPage, description: { component: "A simple divider component used to separate content sections with a horizontal line.", }, }, }, argTypes: { className: { control: { type: "text" }, description: "Additional CSS classes", }, }, args: {}, }; export default meta; type Story = StoryObj; // Default divider export const Default: Story = { args: {}, }; // Horizontal divider export const Horizontal: Story = { render: () => (

Content above the divider

Content below the divider

), parameters: { docs: { description: { story: "Default horizontal divider separating content sections.", }, }, }, }; // Custom styling export const CustomStyling: Story = { args: { className: "h-0.5 bg-border-brand", }, render: args => (

Content above

Content below

), }; // Multiple dividers export const Multiple: Story = { render: () => (

Section 1

Content for section 1

Section 2

Content for section 2

Section 3

Content for section 3

), parameters: { docs: { description: { story: "Multiple dividers used to separate different content sections.", }, }, }, }; // In list export const InList: Story = { render: () => (

List item 1

List item 2

List item 3

), parameters: { docs: { description: { story: "Dividers used within a list to separate items.", }, }, }, }; // Thick divider export const Thick: Story = { args: { className: "h-1 bg-border-default", }, render: args => (

Content above

Content below

), }; // Colored divider export const Colored: Story = { args: { className: "h-0.5 bg-border-brand", }, render: args => (

Content above

Content below

), }; // All variants showcase export const AllVariants: Story = { render: () => (

Default Divider

Content above

Content below

Custom Styled

Content above

Content below

Thick Divider

Content above

Content below

In List

Item 1

Item 2

Item 3

), parameters: { docs: { description: { story: "Showcase of all divider variants and use cases.", }, }, }, };