Skip to content
OTF Kit logoOTF Kit

Dotted Background

Display

Dotted-grid background pattern — subtle texture without competing for attention.

View in Storybook
Dotted Background
Loading Storybook preview…

Installation

bun add @otfdashkit/ui

Usage

Import DottedBackground from @otfdashkit/ui.

Code
// Dotted Background — Dotted-grid background pattern — subtle texture without competing for attention.
//
// Install:
//   bun add @otfdashkit/ui

import { DottedBackground } from '@otfdashkit/ui'

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

Props

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

PropTypeDefaultDescription
colorstringDot color (default uses --border token)
dotSizenumber1Dot size in px (default 1)
fixedbooleanfalse
gapnumber24Gap between dots in px (default 24)
vignettebooleantrueVignette fade at edges

Related