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.
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
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.
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.mdThe index of every part is at /llms.txt.