With Label
A label sits inside the rule for a major break.
import { Box } from '@/components/Box';
import { Separator } from '@/components/Separator';
import { Text } from '@/components/Text';
<Box width="100%">
<Text>First section</Text>Draws a rule between sections of related content.
import { Separator } from "@/fragments/ui";Sourceimport { Box } from '@/components/Box';
import { Separator } from '@/components/Separator';
import { Text } from '@/components/Text';
<Box width="100%">
<Text>Standard weight</Text>npx @usefragments/cli add separatorWrites src/fragments/ui/components/Separator plus what it imports, the globals stylesheet, and .fragments/registry-lock.json, then prints the packages to add. No account, no key.
Your own registry: publish from Fragments Cloud and add --registry org/name. Connect a workspace.
A label sits inside the rule for a major break.
import { Box } from '@/components/Box';
import { Separator } from '@/components/Separator';
import { Text } from '@/components/Text';
<Box width="100%">
<Text>First section</Text>Divides items sitting in a row.
import { Box } from '@/components/Box';
import { Separator } from '@/components/Separator';
import { Stack } from '@/components/Stack';
import { Text } from '@/components/Text';
<Stack direction="row" align="center" gap="md" style={{ height: '40px' }}>gap sets the breathing room around the rule.
import { Box } from '@/components/Box';
import { Separator } from '@/components/Separator';
import { Text } from '@/components/Text';
<Box width="100%">
<Text>none</Text>Prop | Type | Default | Description |
|---|---|---|---|
orientation | enumhorizontalvertical | horizontal | Direction of the separator |
gap | enumnonexssmmdlgxl | none | Breathing room around the rule |
soft | boolean | false | Softer, lighter appearance |
label | string | Not set | Optional text label (horizontal only) |
style | object | Not set | — |