Skip to Content
UI Kit
Components (172)

Threat Model

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

Open preview
Loading Threat Model…

Usage

import { ThreatModel } from "ui-kit/components/threat-model";

Props

PropTypeDefaultDescription
name*string—"Support agent" – names the diagram for screen readers
nodes*ThreatNode[]——
boundariesThreatBoundary[][]—
flows*ThreatFlow[]——
tracestring[]—Flow ids in the order a request takes – traced one by one, again and again. Default: every flow in order
pacenumber1300Milliseconds per flow while tracing – default 1300
onResolve(flowId: string) => void—Called with a flow id when its risk is marked fixed
classNamestring——

On this page