Skip to main content

SensitivityTag

A compact data-classification pill (PII / PHI / financial / confidential / restricted).

Signature
Density
Viewport
Theme and light/dark are set in the top bar
Live demo
Open ↗

When 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​

PropTypeRequiredDescription
level"pii" | "phi" | "financial" | "confidential" | "restricted"—Data classification level.
childrenReact.ReactNode—Custom label; defaults to the level's standard abbreviation.
iconReact.ReactNode—Override the leading icon (SVG path nodes).
classNamestring—