Hulian UIv0.93.5413 components0 components
  • Start
  • Components
  • Blocks
  • Pages
  • Demos
  • Changelog
ChineseEnglish
  • ComponentsComponents
  • ThemeTheme

Collections

  • QuestionCard
  • Table
  • Book3D
  • ProTable
  • PricingTable
  • JsonViewer
  • EditableTable
  • List
  • Descriptions
  • RowActions
  • Tree
  • Card
  • Carousel
  • Video
  • Audio
  • BentoGrid
  • Image
  • MagicCard
  • AnimatedList
  • Marquee
  • Sortable
  • Kanban
  • DesignCanvas
  • LayerTree
  • StageDraw
  • SlideDeck
  • PresenterView
  • ComponentPicker
  • EventStream
  • QueueLane
  • DocumentSheet
  • Novel reader
  • Scheduler
  • Org classroom
  • Danmaku
  • LiveChat
  • LivePlayer
  • LogViewer
  • FileTree
  • CodeReviewThread
  • VirtualList
  • InfiniteScroll
  • LogoLoop
  • BounceCards
  • CardSwap
  • ChromaGrid
  • CircularGallery
  • DomeGallery
  • FlyingPosters
  • InfiniteMenu
  • MagicBento
  • ScrollStack
  • ProfileCard
  • TiltedCard
  • PixelCard
  • DecayCard
  • ReflectiveCard
  • Folder

Charts and Diagrams

  • Flow
  • Diagram
  • Paper
  • SequenceDiagram
  • Sankey
  • Sparkline
  • Funnel
  • Treemap
  • Gantt
  • Heatmap
  • ContributionGraph
  • Legend
  • Chart
  • WorldMap

Information

  • ImageViewer
  • LiveProductCard
  • DiffStat
  • ScoreRing
  • ScoreScale
  • Badge
  • Dot
  • StatusDot
  • Chip
  • FilterChip
  • Coupon
  • Tag
  • Annotation
  • Avatar
  • AvatarCircles
  • User
  • QRCode
  • Comment
  • RelativeTime
  • GitCommit
  • DeployStatus
  • ShieldBadge
  • AwardBadge
  • CreditCard
  • IconTile

Metrics

  • Stat
  • Statistic
  • Meter
  • Timeline
  • NumberTicker

Placeholders

  • Empty
  • Skeleton
  • Watermark

Watermark

watermark

Tiles a high-DPI canvas watermark and restores it after DOM tampering.

Usage

Basic usage

The package content area is a tiled single-line watermark, and pointer-events:none does not block interaction.

2026 Q2 Financial Presentation (Restricted)

This page contains business secrets and screenshots are prohibited. The watermark covers the entire area and adapts to the theme. If you delete the watermark layer, it will be automatically restored.

tsx
<Watermark content="Hulian · Confidential">
  <YourContent />
</Watermark>

Multi-line text

content passes the array and renders it as a multi-line watermark.

2026 Q2 Financial Presentation (Restricted)

This page contains business secrets and screenshots are prohibited. The watermark covers the entire area and adapts to the theme. If you delete the watermark layer, it will be automatically restored.

tsx
<Watermark content={["Hulian Confidential", "zhangzhiwei"]}>
  <YourContent />
</Watermark>

Intensive + Custom Color

gap Tighten the spacing, color / rotate / opacity customize the look and feel.

2026 Q2 Financial Presentation (Restricted)

This page contains business secrets and screenshots are prohibited. The watermark covers the entire area and adapts to the theme. If you delete the watermark layer, it will be automatically restored.

tsx
<Watermark
  content="DO NOT SHARE"
  gap={48}
  rotate={-30}
  color="var(--color-danger)"
  opacity={0.18}
>
  <YourContent />
</Watermark>

Picture watermark

Pass image (dataURL / link) to tile the image, and width controls the width.

2026 Q2 Financial Presentation (Restricted)

This page contains business secrets and screenshots are prohibited. The watermark covers the entire area and adapts to the theme. If you delete the watermark layer, it will be automatically restored.

tsx
<Watermark image={logoDataUrl} width={84}>
  <YourContent />
</Watermark>

When to use

Use Watermark over a sensitive content region to discourage screenshot leakage. Wrap the protected children; use Empty for no data or Skeleton while loading.

Import

ts
import { Watermark } from "@hulianui/ui"

Props

Inherits all native div attributes except content, which is redefined as a string or string array.

NameTypeDefaultDescription
contentstring | string[]-One or multiple text lines; image takes precedence when both are supplied.
imagestring-Data URL or remote image source.
widthnumber120Image width in pixels.
heightnumberOriginal aspect ratioImage height in pixels.
rotatenumber-22Rotation in degrees.
gapnumber | [number, number]100Shared x/y spacing or explicit [x, y] spacing in pixels.
fontSizenumber16Text size in pixels.
fontFamilystringsans-serifFont family.
fontWeightnumber | stringnormalFont weight.
colorstring--color-muted-foregroundWatermark color; omission follows the semantic theme token.
opacitynumber0.15Overall opacity.
zIndexnumber9Overlay z-index; pointer events remain disabled.

Slots

SlotTypeDescription
childrenReactNodeProtected content region.

Pitfalls

  • SVG and canvas colors require full --color- token names such as var(--color-danger); bare var(--danger) does not resolve. See [[hulian-token-color-var-needs-color-prefix]].
  • Canvas tiling and MutationObserver require a client environment. A pure static SSR screenshot may occur before the watermark is drawn; verify in a real browser.
  • image takes precedence over content; omit it when text should render.

Related

Empty · Skeleton · Table · Book3D · ProTable · PricingTable

Playground

2026 Q2 Financial Presentation (Restricted)

This page contains business secrets and screenshots are prohibited. The watermark covers the entire area and adapts to the theme. If you delete the watermark layer, it will be automatically restored.

<Watermark content="Hulian · Confidential" rotate={-22} fontSize={16} opacity={0.15}>
  <YourContent />
</Watermark>
PreviousSkeletonData DisplayNextIconTile

On this page

  • Usage
  • Documentation
    • When to use
    • Import
    • Props
    • Slots
    • Pitfalls
    • Related
  • Playground