Componentticket-stub0.6 KB gzipZero dependencies

Watermark

Repeating watermark pattern with security angle.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add watermark

Or install the full npm package:

npm install bigbullui

Usage

tsx5 lines
import { Watermark } from "@/components/ui/watermark"; <Watermark text="OFFICIAL PASS • DO NOT DUPLICATE" notched>  <div>Protected Content</div></Watermark>

Source code

watermark.tsx + 1 helper

Zero third-party dependencies (2 local files shown in tabs below).

tsxwatermark.tsx70 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface WatermarkProps extends React.HTMLAttributes<HTMLDivElement> {  text?: string;  repeat?: number;  angle?: number;  opacity?: number;  notched?: boolean;  children: React.ReactNode;  className?: string;} export function Watermark({  text = "OFFICIAL TICKET • DO NOT DUPLICATE",  repeat = 12,

Props

Interactive Prop Playground

Tweak parsed AST props below to generate ready-to-paste JSX.

tsx3 lines
import { Watermark } from "@/components/ui/watermark"; <Watermark />
PropTypeDescription
textstringConfigures text. (Default: "OFFICIAL TICKET • DO NOT DUPLICATE")
repeatnumberConfigures repeat. (Default: 12)
anglenumberConfigures angle. (Default: -22)
opacitynumberConfigures opacity. (Default: 0.07)
notchedbooleanToggles notched. (Default: false)
childrenReact.ReactNodeChild elements rendered inside the component.
classNamestringOptional Tailwind or custom CSS classes merged with component styles.