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

Ruled Lines

ProNew

Evenly spaced rules with an optional margin line, like a notebook page.

Installation

pnpm dlx shadcn@latest add @viewport/ruled-lines

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 rules in CSS pixels.

24
orientation"horizontal" | "vertical"

Direction the rules run.

"horizontal"
marginnumber

Draw a margin line this many CSS pixels from the leading edge. Omit for none.

—
classNamestring

Use text color utilities to tint the rules.

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