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

Cross Pattern

ProNew

Small registration crosses on a regular grid, for canvases and artboards.

Installation

pnpm dlx shadcn@latest add @viewport/cross-pattern

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
spacingnumber

Distance between cross centers in CSS pixels.

24
armnumber

Length of each arm, from the center, in CSS pixels.

3
classNamestring

Use text color utilities to tint the crosses.

—
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.