sigilUI

Sigil Gutter

Render the margin rails of a structural page grid.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { SigilGutter, Center } from "@sigil-ui/components";

Usage

<div className="grid w-full grid-cols-[var(--s-space-32)_1fr_var(--s-space-32)] min-h-[calc(var(--s-grid-cell)*4)]"><SigilGutter pattern="grid" /><Center>Content between the rails</Center><SigilGutter side="right" pattern="grid" /></div>

Sub-components

This component includes the following parts:

  • <SigilPageGrid>
  • <SigilFrame>
  • <SigilFullBleed>

Props

PropTypeDefaultDescription
showGridboolean—Show Grid configuration.
gridCellnumber—Grid Cell configuration.
patternGutterPattern—Pattern configuration.
sidePatternSide—Side configuration.
visibleboolean—Visible configuration.
classNamestring—Additional classes merged with the component styles.

Token integration

CSS VariablePurpose
--s-grid-line-colorGrid line color
--s-border-mutedBorder muted
--s-gutter-borderGutter border
--s-border-width-thinBorder width thin
--s-border-styleBorder style
--s-backgroundBackground
--s-margin-borderMargin border
--s-page-marginPage margin
--s-content-maxContent max