Velora UI

Grid & Dot Pattern

SVG grid and dot backdrops with maskable depth.

  • 0.8 KB gzipped
  • Zero dependencies
  • Reduced-motion safe
  • Base UI & Radix compatible
Open in v0

Preview

Grid pattern · Dot pattern

Texture that stays out of the way

Installation

pnpm dlx shadcn@latest add https://velora.colorlib.com/r/grid-pattern.json

Adds components/velora/grid-pattern.tsx.

Props

GridPattern

PropTypeDefault
widthnumber40
heightnumber40
xnumber-1
ynumber-1
squares

Cells to fill, as [col, row] pairs

Array<[number, number]>—
strokeDasharraystring"0"

Also accepts every <svg> attribute, forwarded to the root element.

DotPattern

PropTypeDefault
widthnumber20
heightnumber20
cxnumber1
cynumber1
crnumber1

Also accepts every <svg> attribute, forwarded to the root element.

Accessibility

Reduced motion
Nothing changes: GridPattern and DotPattern are static SVG patterns with no animation.
Keyboard
Decorative — nothing to operate.
Screen readers
Decorative; both SVGs are aria-hidden.