Skip to content
OTF Kit logoOTF Kit

Noise Background

Display

Subtle noise texture overlay for added depth on flat surfaces.

View in Storybook
Noise Background
Loading Storybook preview…

Installation

bun add @otfdashkit/ui

Usage

Import Noise Background from @otfdashkit/ui.

Code
// Noise Background — Subtle noise texture overlay for added depth on flat surfaces.
//
// Install:
//   bun add @otfdashkit/ui

import { NoiseBackground } from '@otfdashkit/ui'

export function Example() {
  return (
    <NoiseBackground>
      {/* your content */}
    </NoiseBackground>
  )
}

Props

Props declared in the NoiseBackground source. Inherited HTML attributes are not listed.

PropTypeDefaultDescription
fixedbooleanfalse
frequencynumber0.65Noise grain size — maps to SVG baseFrequency (default 0.65)
opacitynumber0.04Noise opacity 0–1 (default 0.04)

Related