Skip to content
VenusUI
Get started

Rubber Stamp

A rubber stamp and a sheet of paper: click to stamp it, each impression a little crooked and worn.

Preview

Installation

npx shadcn@latest add @venusui/rubber-stamp

Run this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.

Files added to your project

Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.

  • @/components/ui/rubber-stamp.tsx

Usage

The code behind the preview above.

rubber-stamp-demo.tsx

import { RubberStamp } from "@/components/ui/rubber-stamp"

export default function RubberStampDemo() {
  return (
    <RubberStamp>
      <p className="font-serif text-lg font-semibold">Invoice #2047</p>
      <p className="mt-1 text-xs text-neutral-500">Northwind Studio · 14 May 2026</p>
      <div className="mt-6 space-y-2 text-sm">
        <p className="flex justify-between"><span>Brand refresh</span><span>$4,200</span></p>
        <p className="flex justify-between"><span>Website build</span><span>$7,800</span></p>
        <p className="flex justify-between border-t pt-2 font-semibold"><span>Total</span><span>$12,000</span></p>
      </div>
    </RubberStamp>
  )
}

API reference

PropTypeDefaultDescription
textstring"APPROVED"What the stamp says.
inkstring"#c2410c"Ink colour.
childrenReactNode—Content of the sheet.
onStamp(count: number) => void—Called after each stamp.

All <div> props.

Requirements

  • lucide-react for icons. React 19 and Tailwind CSS v4. The CLI adds the keyframes.

Customization

  • Change text and ink for “PAID”, “SHIPPED” or “DRAFT”.

Accessibility

  • A Stamp button stamps the middle of the sheet; the count is announced.

Troubleshooting

Something looks different from the preview.
Components use your project’s theme tokens, so surrounding colours and radius follow your styles.
Unknown registry "@venusui"
Your shadcn CLI couldn’t find the namespace in the shadcn registry index. Use the latest CLI (npx shadcn@latest), install by URL, or register it with its address: npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json.
No components.json found
Run npx shadcn@latest init in your project first.
Loading preview

A card that tilts in 3D toward the pointer with spring physics.

Loading preview

Bubble Wrap

Interactive

A sheet of bubble wrap to pop one by one, or a whole row with a drag.

Loading preview

Camera Shutter

Interactive

A lens with a working iris: blades close to the chosen aperture and snap shut when you release the shutter.