Skip to Content
UI Kit
Components (172)

Case Model

Reusable Clean-style UI component built on Base UI and Tailwind CSS v4.

Open preview
Loading Case Model…

Usage

import { CaseModel } from "ui-kit/components/case-model";

Props

PropTypeDefaultDescription
casesCaseFile[]—Several cases as folder tabs side by side – a click on a tab opens that case. Or give one case with the props below
defaultCasestring—The case open first – default the first
onCaseChange(caseId: string) => void—Called with a case's id when its tab is opened
namestring—One case: "Claim #4821" – on the folder's tab
detailstring—"Water damage"
stagesCaseStage[]——
itemsCaseItem[]——
tasksCaseTask[]——
milestonesCaseMilestone[]——
plannedstring[]—Optional tasks planned from the start
autoApprovebooleantrueA person's task approves itself after a moment, as if they'd decided – default true. Off: only Approve does
loopbooleantrueStart 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——
classNamestring——

On this page