import type { Meta, StoryObj } from '@storybook/react-vite' import { Divider } from './Divider' import { MenuPanel } from './Menu' import { Card } from './Card' /** A hairline in `border-subtle`, inset 12px each side — or standing up between two columns. */ const meta = { title: 'Primitives/Divider', component: Divider, } satisfies Meta export default meta type Story = StoryObj /** Between two blocks on the surface. */ export const Default: Story = { render: () => (

Above the divider

Below the divider

), } /** Inside a menu — on the elevated surface, full width (`mx-0`). */ export const InAMenu: Story = { render: () => (
First action
Second action
), } /** Standing between two columns, the height of its row. Ship's addition. */ export const Vertical: Story = { render: () => (
Content
Rail
), } /** Words in the middle of the line — a date between two days of messages. */ export const WithALabel: Story = { // axe color-contrast is off here until PLAN.md stage 0.10 is ruled: // the label is muted caption text, 3.78:1 on --bg-surface in signal (AA 4.5:1). parameters: { a11y: { config: { rules: [{ id: 'color-contrast', enabled: false }] } } }, render: () => (

Yesterday's last message

Today's first

), } /** Asking for attention: where "new since you last read this" begins. The warning colour, because the accent could not be read on Ship's background. */ export const Warning: Story = { render: () => (

Yes — it re-reads the folder union and the archived one lands last.

Same here, from Peek.

), }