Dev Design Library

Redacted Text Display

An inline-annotated text renderer interleaving plain text with color-coded redaction tokens (e.g. [PER], [LOC]) styled per entity type with native tooltips, including a scanning loading skeleton and an empty placeholder. Takes source text +.

Redacted Text Display preview
Library
LocalMode
Framework
React
Type
component
License
MIT
Install
npx shadcn add @localmode/ui/ui/results/redacted-text-display
Files
  • apps/ui/registry/localmode/results/redacted-text-display/redacted-text-display.tsx
  • apps/ui/src/lib/utils.ts
Source
https://github.com/LocalMode-AI/LocalMode

Categories

More from LocalMode