Components (172)
Case Model
Reusable Clean-style UI component built on Base UI and Tailwind CSS v4.
Loading Case Model…
Usage
import { CaseModel } from "ui-kit/components/case-model";Props
| Prop | Type | Default | Description |
|---|---|---|---|
cases | CaseFile[] | — | Several cases as folder tabs side by side – a click on a tab opens that case. Or give one case with the props below |
defaultCase | string | — | The case open first – default the first |
onCaseChange | (caseId: string) => void | — | Called with a case's id when its tab is opened |
name | string | — | One case: "Claim #4821" – on the folder's tab |
detail | string | — | "Water damage" |
stages | CaseStage[] | — | — |
items | CaseItem[] | — | — |
tasks | CaseTask[] | — | — |
milestones | CaseMilestone[] | — | — |
planned | string[] | — | Optional tasks planned from the start |
autoApprove | boolean | true | A person's task approves itself after a moment, as if they'd decided – default true. Off: only Approve does |
loop | boolean | true | Start the case over once it's closed – default true |
onApprove | (taskId: string) => void | — | Called when a person's task is approved, or an optional task planned, from its card |
onPlan | (taskId: string) => void | — | — |
className | string | — | — |