Approval Card

React request card for approval workflows showing the requester avatar, title and summary, with Reject and Approve buttons wired to your callbacks.

src/registry/ui/approval-card.tsx/r/approval-card.json

Installation#

bash
npx shadcn@latest add @minidev/approval-card

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/approval-card.json

Usage#

tsx
import { ApprovalCard } from "@/components/ui/approval-card"

export function Example() {
  return (
    <ApprovalCard title="Merge release notes" requester="Mina" summary="Ready for docs review." />
  )
}

API reference#

ApprovalCard props
PropTypeDefault
titlestring"Refund $1,240 on INV-2041"
requesterstring"Theo Okafor"
summarystring-
onApprove() => void-
onReject() => void-
classNamestring-

Dependencies#

npm

React only

Built from

Examples#

All kanban, timeline and workflow components