Components (172)
Threat Model
Reusable Clean-style UI component built on Base UI and Tailwind CSS v4.
Loading Threat Model…
Usage
import { ThreatModel } from "ui-kit/components/threat-model";Props
| Prop | Type | Default | Description |
|---|---|---|---|
name* | string | — | "Support agent" – names the diagram for screen readers |
nodes* | ThreatNode[] | — | — |
boundaries | ThreatBoundary[] | [] | — |
flows* | ThreatFlow[] | — | — |
trace | string[] | — | Flow ids in the order a request takes – traced one by one, again and again. Default: every flow in order |
pace | number | 1300 | Milliseconds per flow while tracing – default 1300 |
onResolve | (flowId: string) => void | — | Called with a flow id when its risk is marked fixed |
className | string | — | — |