
Usage
import { DecisionInbox } from "@/registry/components/decision-inbox/decision-inbox";
<DecisionInbox decisions={[/* … */]} />Props
| Name | Type | Default | Description |
|---|---|---|---|
| decisions | Decision[] | id, title, detail, primary and secondary answer, and collapsed to start folded | |
| onDecide | (decision, answer: "primary" | "secondary") => void | Called when someone picks an answer | |
| className | string | Extra class on the tray |
When to use
- Dashboards or agents that need a quick yes / no from a person before they continue - Approvals, renewals and alerts that can be answered with one click
When not to use
Free-form messages (notification-stack) or long forms.