Skip to content

GridOverlay

Inspect responsive columns, margins, and the four-pixel baseline without changing the layout.

alpina-ui/ui/grid-overlay

Interactive preview

Proof sheet

Inspect the columns, margins and baseline together.

Usage notes

Mount the overlay alongside a page or inside a positioned container with placement set to container. Use hidden to toggle it. The portal shortcut is Ctrl+Shift+G.

When to use

Inspect the placement of columns and baselines while reviewing a layout at real viewport widths.

When to avoid

Leave the overlay hidden during ordinary reading and data entry. It is a proofing aid for the interface author.

Accessibility

Preserve keyboard access to the underlying page and provide a way to dismiss the overlay without a pointer.

Keys
KeyAction
—Read in document order. The component has no keyboard command of its own.

Content

Name the toggled aid precisely in a short action phrase. Keep the keyboard shortcut separate from the translated label.

Use
Show layout grid / Ctrl + Shift + G
Avoid
Graphics on

Copy in four languages

German
Raster anzeigen15 characters
French
Afficher la grille18 characters
Italian
Mostra griglia14 characters
Romansh
Mussar la rait14 characters
Add to your project
npx --no-install alpina add grid-overlay