Componentticket-stub0.6 KB gzipZero dependencies
Watermark
Repeating watermark pattern with security angle.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add watermarkOr install the full npm package:
npm install bigbulluiUsage
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 helperZero 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 />| Prop | Type | Description |
|---|---|---|
| text | string | Configures text. (Default: "OFFICIAL TICKET • DO NOT DUPLICATE") |
| repeat | number | Configures repeat. (Default: 12) |
| angle | number | Configures angle. (Default: -22) |
| opacity | number | Configures opacity. (Default: 0.07) |
| notched | boolean | Toggles notched. (Default: false) |
| children | React.ReactNode | Child elements rendered inside the component. |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |