Decision inbox preview

Decision inbox

Open decisions with two quick answers each – answered ones confirm and fold away

  • Group
    Messages
  • Origin
    Copied · affectUI · source
  • License
    MIT
  • Added
    Oct 18
npx shadcn@latest add @deank/decision-inbox

The registry stays private. Install from the repo with a GitHub token — see the README.

Usage

import { DecisionInbox } from "@/registry/components/decision-inbox/decision-inbox";

<DecisionInbox decisions={[/* … */]} />

Props

NameTypeDefaultDescription
decisionsDecision[]id, title, detail, primary and secondary answer, and collapsed to start folded
onDecide(decision, answer: "primary" | "secondary") => voidCalled when someone picks an answer
classNamestringExtra 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.

Related

Smart recommendation · Email draft · Notification stack