L
LocalMode

Redacted Text Display · LocalMode

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 + detected entity spans (start/end) from useExtractEntities; segments internally (overlaps resolved by earliest). Exports segmentText().

npx shadcn@latest add https://localmode.ai/r/ui/results/redacted-text-display.json
Preview Redacted Text Display on LocalMode's site (opens in a new tab)
Loading the source for ui/results/redacted-text-display…

ui/results/redacted-text-display