sigilUI

Sigil Grid

Grid with visible cross marks at cell intersections. Uses a pseudo-element background to render the sigil pattern.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { SigilGrid, SigilGridCell } from "@sigil-ui/components";

Usage

<SigilGrid columns={4}>
  <SigilGridCell className="p-4 border border-[var(--s-border)]">A</SigilGridCell>
  <SigilGridCell className="p-4 border border-[var(--s-border)]">B</SigilGridCell>
  <SigilGridCell className="p-4 border border-[var(--s-border)]">C</SigilGridCell>
  <SigilGridCell className="p-4 border border-[var(--s-border)]">D</SigilGridCell>
</SigilGrid>

SigilGrid is for local component grids and decorative cell layouts. It is not the page shell. For full pages, use:

<SigilPage rhythm="locked" chrome="rails">
  <SigilSection space="normal">...</SigilSection>
</SigilPage>

Use SigilGrid inside sections when you need a compact grid with visible cell intersections.

Sub-components

This component includes the following parts:

  • <SigilGridCell>

Props

PropTypeDefaultDescription
columns2 | 3 | 4 | 5 | 63Number of columns.
gapstring | number—Gap between cells.

Token integration

CSS VariablePurpose
--s-grid-cellGrid cell
--s-borderBorder
--s-grid-cell-radiusGrid cell radius
--s-radius-smRadius sm
--s-duration-normalDuration normal
--s-surface-elevatedSurface elevated