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

Noise Texture

ProNew

A light film grain in three sizes that takes its tint from the text color.

Installation

pnpm dlx shadcn@latest add @viewport/noise-texture

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
grain"fine" | "medium" | "coarse"

Size of the grain. Fine reads as film stock, coarse as sand.

"fine"
opacitynumber

Strength from 0 (none) to 1 (strongest).

0.12
classNamestring

Use text color utilities to tint the grain.

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