sigilUI

Page Grid

Align page content to a shared column grid.

@sigil-ui/componentsReact

Preview

Page alignment grid Interactive

Import

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

Usage

<PageGrid showRails showCross className="min-h-64 overflow-hidden border border-[var(--s-border)] bg-[var(--s-background)]">
    <div className="mx-auto max-w-md p-[var(--s-space-8)] text-center">
      <div className="border border-[var(--s-border-strong)] bg-[var(--s-surface)] p-[var(--s-space-6)] text-sm text-[var(--s-text)]">Content aligned to the grid</div>
    </div>
  </PageGrid>

Props

PropTypeDefaultDescription
showRailsboolean—Show vertical rail marks on left/right edges.
showCrossboolean—Show cross marks at grid intersections.

Token integration

CSS VariablePurpose
--s-rail-gapRail gap
--s-border-mutedBorder muted
--s-grid-cellGrid cell