Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Graph Paper

ProNew

Fine squares with a heavier rule every few cells, like engineering paper.

Installation

pnpm dlx shadcn@latest add @viewport/graph-paper

First time? Add the @viewport registry to components.json. Setup takes one minute.

Usage

The code behind the preview above comes with Truffle Pro.

Props

PropTypeDefault
sizenumber

Size of one small square in CSS pixels.

12
majornumber

A heavier line is drawn every this many squares.

5
classNamestring

Use text color utilities to tint the lines.

—
styleCSSProperties—

Accessibility

  • Decorative and hidden from assistive technology.
  • Ignores pointer events and is hidden in forced-colors mode.
  • Static and requires no browser JavaScript to paint.