Skip to content

WatermarkOverlay ​

Tiled text watermark over content

Marks what a thing is — DRAFT, SAMPLE, a viewer's name on a preview — across everything inside it. It is a label, not protection: the text underneath stays selectable, and a screenshot can be cropped or edited.

Basic

第3話 脚本 v0.4

Draft — not for distribution

○坂道の上・夕方 倫也、桜の下で帽子を拾う。振り向いた先に、恵。

  • The layer is hidden from screen readers and lets clicks and selection through. If the mark matters (a draft), say it in the content as well.
  • color defaults to the text colour, so it follows dark mode; pass any CSS colour, a token included (var(--bless-color-danger-text) for a warning mark). opacity, angle, gap and fontSize tune the tile.

Usage ​

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

API ​

Props

NameTypeDefaultDescription
text*string—
gapnumber180tile size in px
anglenumber-22
fontSizenumber16
opacitynumber0.15
colorstring"currentColor"any CSS colour; the default follows the text colour, so it flips with the theme

Slots

NameScopeDescription
default—

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