Separator
A line between two groups, or the hatched band that opens a section.
import { Separator } from "@forgeron/ui";Profile
MembersTeamsAccess
import { Separator } from "@forgeron/ui";
export default function Default() {
return (
<div style={{ display: "grid", gap: 16, width: 360 }}>
<span>Profile</span>
<Separator />
<div style={{ display: "flex", gap: 12, height: 20 }}>
<span>Members</span>
<Separator orientation="vertical" />
<span>Teams</span>
<Separator orientation="vertical" />
<span>Access</span>
</div>
</div>
);
}/0.2 → Settings
import { Separator } from "@forgeron/ui";
export default function Hatch() {
return (
<div style={{ width: "100%" }}>
<Separator variant="hatch">/0.2 → Settings</Separator>
</div>
);
}API → Props
| Prop | Type | Default | Description |
|---|---|---|---|
orientation | "horizontal" | "vertical" | "horizontal" | Vertical between items of a row. |
variant | "line" | "hatch" | "line" | Hatch is the section band. |
children | ReactNode | — | The label on a hatch band. |
className | string | — | Extra classes. |