Skip to content
Browse library
BIU UI/Components/Decision Card
COMPONENTSPro

Decision Card

Explore the Decision Card component and try its interactive examples.

INTERACTIVE PREVIEW

Preview

Loading preview…
GET STARTED

Installation

BIU UI ProEarly Access · Coming Soon
Decision Card source is part of BIU UI Pro

The interactive preview and API reference are open to try right here. Full single-file TSX source and @biudev-pro/decision-card shadcn Registry installs are reserved for BIU UI Pro. Meanwhile, all 41 core components and 2 starter blocks are free and open source under MIT.

npx shadcn@latest add @biudev-pro/decision-card

Usage

Start with this example, then adjust the import path for your project.

EXAMPLE / TSX
import { DecisionCard } from "@/components/ui/biu/decision-card";

export function Example() {
  return (
    <DecisionCard
      decisions={[
        {
          id: "queue",
          task: "Ingest pipeline",
          question: "Which queue should the ingest service use?",
          options: [
            { id: "kafka", label: "Kafka", description: "Durable log with replay", recommended: true },
            { id: "sqs", label: "SQS", description: "Managed, zero ops" },
          ],
        },
      ]}
      onDecide={(id, answer) => console.log(id, answer)}
    />
  );
}

Examples

Try each example or switch to its code.

API reference

Properties and defaults from the component source. An asterisk marks a required property; a dash means no explicit default.

DecisionKind

Also accepts properties from 'options' & 'approval' & 'tiles'.

Some properties depend on the variant; consult the source for the full union.

DecisionOption

DecisionItem

DecisionOptionAnswer

DecisionTextAnswer

DecisionAnswer

Also accepts properties from DecisionOptionAnswer & DecisionTextAnswer & 'approve' & 'decline'.

Some properties depend on the variant; consult the source for the full union.

DecisionCardLabels

DecisionCardProps

Source

BIU UI ProEarly Access · Coming Soon
Decision Card source is part of BIU UI Pro

The interactive preview and API reference are open to try right here. Full single-file TSX source and @biudev-pro/decision-card shadcn Registry installs are reserved for BIU UI Pro. Meanwhile, all 41 core components and 2 starter blocks are free and open source under MIT.

npx shadcn@latest add @biudev-pro/decision-card