Components (172)
Approval Card
Reusable Clean-style UI component built on Base UI and Tailwind CSS v4.
Loading Approval Card…
Usage
import { ApprovalCard } from "ui-kit/components/approval-card";Props
| Prop | Type | Default | Description |
|---|---|---|---|
title* | string | — | — |
description | ReactNode | — | — |
risk | ApprovalRisk | — | — |
icon | ReactNode | — | — |
details | ApprovalDetail[] | — | — |
preview | ReactNode | — | — |
children | ReactNode | — | — |
status | ApprovalStatus | — | — |
defaultStatus | ApprovalStatus | "pending" | — |
onApprove | (decision: { always: boolean }) => void | Promise<unknown> | — | — |
onDeny | (decision: { reason: DenyReason }) => void | — | — |
onEdit | () => void | — | — |
expiresIn | number | — | — |
onExpire | () => void | — | — |
allowAlways | boolean | true | — |
alwaysLabel | string | "Always allow this action" | — |
approveLabel | string | "Approve" | — |
denyLabel | string | "Deny" | — |
editLabel | string | "Edit" | — |
shortcuts | boolean | true | — |
label | ReactNode | — | — |
actions | "tray" | "card" | "card" | — |
className | string | — | — |