PolyHunter

EnrichedText

Small enriched markup — deliberately not full markdown: **bold**, [label](url) links, [[locked phrase]] (chip + lock icon + tooltip), and - bullet lists. Locked phrases render as a generic hiddenLabel (localized by default) — the backend text inside [[…]] only appears once revealed. The text style is parametrized via className and inherited by every part.

Playground

Live preview

All features — default body style

Infiltrate the district and gather intel on the corp council.
  • Reach the
  • Extract via the harbor docks
  • No casualties preferred
Infiltrate the district and gather **intel on the corp council**.
- Reach the [[vault access codes]]
- Extract via the [harbor docks](https://example.com/docks)
- **No casualties** preferred

Examples

Parametrized — label-medium, subtle

Infiltrate the district and gather intel on the corp council.
  • Reach the
  • Extract via the harbor docks
  • No casualties preferred

Parametrized — body-large, default + custom lock tooltip

Infiltrate the district and gather intel on the corp council.
  • Reach the
  • Extract via the harbor docks
  • No casualties preferred

Inline sentence — locked (backend format)

Decode the , then bypass the and meet the courier at the harbor docks. Stay unseen.
Decode the [[quantum cipher]], then bypass the [[laser grid protocol]] and meet the courier at the [harbor docks](https://example.com/docks). **Stay unseen.**

Same text — revealed

Revealed phrases use the unlocked icon and a localized tooltip. Locked phrases keep the localized take-mission explanation.

Decode the , then bypass the and meet the courier at the harbor docks. Stay unseen.

Raw input is identical — the backend always stores and returns [[phrase]]; the revealed prop only changes how it renders.

Decode the [[quantum cipher]], then bypass the [[laser grid protocol]] and meet the courier at the [harbor docks](https://example.com/docks). **Stay unseen.**

Usage

import { EnrichedText } from "@npolyhunter/ui";

// Default body style
<EnrichedText text={text} />

// Parametrized text style — inherits into every part
<EnrichedText
  text={text}
  className="type-label-medium text-foreground-subtle"
/>

// Revealed (mission taken) — unlocked warning mark, no chip background
<EnrichedText text={text} revealed />

Used in

Includes use through shared UI components.

AppBack Office