Components (172)
Decision Table
Reusable Clean-style UI component built on Base UI and Tailwind CSS v4.
Loading Decision Table…
Usage
import { DecisionTable } from "ui-kit/components/decision-table";Props
| Prop | Type | Default | Description |
|---|---|---|---|
name* | string | — | The decision's name – "Refund approval" |
inputs* | DecisionInput[] | — | — |
outputs* | DecisionOutput[] | — | — |
rules* | DecisionRule[] | — | — |
hitPolicy | HitPolicy | "F" | Default F |
request | DecisionRequest | — | The request being decided – a new one starts the check |
agent | { id: string; name: string; } | — | The agent that decides – its pixel mark twinkles while it checks |
version | string | — | Small text beside the name – "v3" |
history | DecisionRequest[] | — | Earlier requests – shown as faces below; a click calls onPick |
onPick | (requestId: string) => void | — | — |
onDecide | (ruleIds: string[]) => void | — | Called once a check is finished, with the ids of the rules that matched |
pace | number | 420 | Milliseconds per rule while checking – default 420 |
rows | number | 8 | Rules shown before the table scrolls – the one being checked stays in view. Default 8 |
className | string | — | — |