Skip to content

Background ​

Tiled texture layer

A decorative layer behind a page or a section: a tiled image, or the built-in hairline pattern. It is hidden from screen readers and never takes clicks.

Basic

pattern fallback

offset -40, opacity .4

  • mode="fixed" pins it to the viewport (put it once, at page level); absolute (default) fills the nearest positioned parent.
  • offset shifts the tile vertically, so neighbouring pages can use different parts of one image.
  • Keep text over it readable: lower opacity rather than relying on the text colour.

Usage ​

ts
import { BlessBackground } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
srcstring—tile image; omit for a built-in hairline pattern
offsetstring | number0vertical tile offset (number = px). Source site used 0 / -300 / -600 per page
mode"absolute" | "fixed""absolute"fixed = viewport (use at page level); absolute = fills positioned parent
opacitynumber1

Released under the MIT License. Character names and artwork belong to their owners.