SensitivityTag
A compact data-classification pill (PII / PHI / financial / confidential / restricted).
Signature
Density
Viewport
Theme and light/dark are set in the top barWhen to use
A compact data-classification pill (PII / PHI / financial / confidential / restricted).
Accessibility
Masked values stay obscured to assistive tech until revealed; the reveal toggle is a labelled button. Audit entries are an ordered list.
Install and import
npx shadcn@latest add @prism/sensitivity-tag
import { SensitivityTag } from '@/components/prism/SensitivityTag';
In a no-build prototype, read it from the bundle instead: const { SensitivityTag } = window.PrismDesignSystem_39d121;
Props
| Prop | Type | Required | Description |
|---|---|---|---|
level | "pii" | "phi" | "financial" | "confidential" | "restricted" | — | Data classification level. |
children | React.ReactNode | — | Custom label; defaults to the level's standard abbreviation. |
icon | React.ReactNode | — | Override the leading icon (SVG path nodes). |
className | string | — |