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

Wave Pattern

ProNew

Rows of soft, even waves with adjustable length and height.

Installation

pnpm dlx shadcn@latest add @viewport/wave-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
wavelengthnumber

Length of one full wave in CSS pixels.

48
amplitudenumber

Height of each crest in CSS pixels.

4
spacingnumber

Vertical distance between lines in CSS pixels.

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