sigilUI

Margin

Apply consistent outer space to a content region.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { Margin } from "@sigil-ui/components";

Usage

<Margin visible className="w-full"><div className="p-[var(--s-space-16)] bg-[var(--s-surface)]">Content between the margin rails</div></Margin>

Props

PropTypeDefaultDescription
size"sm" | "md" | "lg"mdRail size.
visibleboolean—Show visible border rail indicators.

Token integration

CSS VariablePurpose
--s-border-mutedBorder muted