With Label
Words sit between two rules for a major break.
import { Separator } from '@usefragments/ui';
import { Stack } from '@usefragments/ui';
import { Text } from '@usefragments/ui';
<Stack gap="md">
<Text>Continue with email</Text>Draws one hairline between sections of related content.
import { Separator } from '@usefragments/ui';
import { Stack } from '@usefragments/ui';
import { Text } from '@usefragments/ui';
<Stack gap="md">
<Text>Above</Text>pnpm add @usefragments/uiImport styles once from @usefragments/ui/styles. See the installation guide for framework and theme setup.
Words sit between two rules for a major break.
import { Separator } from '@usefragments/ui';
import { Stack } from '@usefragments/ui';
import { Text } from '@usefragments/ui';
<Stack gap="md">
<Text>Continue with email</Text>Divides items sitting in a row.
import { Separator } from '@usefragments/ui';
import { Stack } from '@usefragments/ui';
import { Text } from '@usefragments/ui';
<Stack direction="row" align="center" gap="md">
<Text>Item 1</Text>length="control" stops the rule at the control height between toolbar groups.
import { LinkSimple, TextB } from '@phosphor-icons/react';
import { IconButton } from '@usefragments/ui';
import { Separator } from '@usefragments/ui';
import { Stack } from '@usefragments/ui';
<Stack direction="row" align="center" gap="xs">Prop | Type | Default | Description |
|---|---|---|---|
label | React.ReactNode | Not set | Words between two horizontal rules; a sibling of the rule, never inside its separator role |
length | SeparatorLength | undefinedcontrolfull | full | How far a vertical rule runs: full stretches across the parent, control stops at the compact control height with a small margin either side (the toolbar divider). Ignored on horizontal rules. |
orientation | SeparatorOrientation | undefinedhorizontalvertical | horizontal | Direction of the rule |