Skip to content

Decode Text

Text that resolves out of noise into its final value, for keys, IDs, approvals and headlines.

On this page

Examples

Value

Installation

npx knowns-ui@latest add decode-text
For Claude Code, Cursor or Codex: installs it and wires the props to your own data.

Props

text
string
The final text. Changing it plays the decode again.
duration / delay
number (ms)
Default1100 / 0
Time from noise to text; wait before starting.
charset
"alnum" | "hex" | "binary" | "symbols" | string
Default"alnum"
Glyphs for the noise.
mono
boolean
Defaultfalse
Mono font for keys, hashes and IDs.
loop
number (ms)
Replay this long after it settles.
startComplete
boolean
Defaultfalse
Start with the final text, then decode again on loop. For posters and previews.
onDone
() => void
Called when the text has settled.
Layout
-
The final text holds the size, so the line never jumps while the noise runs.
Accessibility
-
Screen readers get the full text once; the animated layer is aria-hidden. prefers-reduced-motion shows the final text. Pauses offscreen, in hidden tabs and on paused.

When to use

When to use

  • Values that resolve once, such as a generated key, a code or a result revealed after work.

When not to use

  • Numbers that keep changing: use Number Ticker.
  • Long sentences: the noise makes them hard to read.

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Decode Text to my app and wire it to my own data.
  • I need values that resolve once, such as a generated key, a code or a result revealed after work. Set that up with the Knowns UI Decode Text.
  • Which Decode Text props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "decode-text" }) and search_docs({ query: "decode text" }).

Need help?

Stuck on Decode Text, or found something off? We read every message.