Skip to content
caliper ui pro docs

Approval stamp

Stamps a decision onto a document. The stamp drops from above at an angle, lands with a small squash that nudges the page, and leaves a slightly uneven ink mark: green to approve, red to reject.

Pro
Train tickets$184.00
Hotel, two nights$412.00
Team dinner$268.50
Total$864.50

When to use

  • Approving expenses, invoices, contracts and timesheets.
  • Review queues where the decision should feel final.

When not to use

  • Decisions that can change silently; show history with `AuditTrail`.
  • Dense tables of approvals; use a status badge.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/approval-stamp

Adds its 2 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

ApprovalStamp

2 props

Also accepts the native props of its root element and a ref.

PropTypeDefaultDescription
children *ReactNode—The document being decided on.
stamp *{ label: string; tone?: StampTone | undefined; note?: string | undefined; } | null—The decision to stamp, or null for none yet.

Keyboard

  • No custom key handling; Tab and the native activation keys do the work.

Accessibility

It exposes status semantics, with aria-hidden kept in step with state. Changes that matter are announced through a live region.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/approval-stamp.md

The index of every part is at /llms.txt.

More in Surfaces