Skip to content
Back

Text morphPro

A label morphing into its next state letter by letter: letters matched by character and occurrence stay, new ones stagger in from a blur, removed ones fade out.

oxyn add text-morph
The code is part of Oxyn Pro

The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.

Get Pro

Rendered from Rust at build time · goes live when visible

When to use

  • A label that morphs into its next state letter by letter: letters are matched by character and occurrence (morph_letters), so shared letters stay, new letters stagger in 22 ms apart from a blur and removed letters fade out above.

When not to use

  • An agent asks before it acts: use Approval Card instead.
  • Several open requests in one card: use Approval pager instead.
  • An agent's question in its own card above the composer: use Decision Card instead.

Installation

Text morph is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.

Terminal
oxyn add text-morph

Usage

Dioxus · rust
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Examples

Follow

Follow → Following: six letters stay.

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Copy

Copy → Copied → Done.

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Manual

Step by hand.

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

API reference

TextMorph

PropTypeDefaultDescription
textrequiredString—The label.

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
—Not interactive (the button belongs to the demo)

Accessibility

  • The label is the accessible name; letter spans are aria-hidden.
From the spec
  • The label is the accessible name; letters are aria-hidden.

Motion & interaction

Timing
  • Reduced motion: no rise, blur or stagger; labels and values swap instantly (slot reels land at once, the shimmer band stops and the text stays muted).

Responsive behaviour

  • Inline; never wraps.
Edge cases (spec)
  • Never wraps.

Notes for AI

  • Import TextMorph from oxyn_dioxus and include STATUS_INDICATOR_CSS plus the token stylesheet once.
  • There is no GPUI version yet; use the Dioxus component.
  • Props to set first: text.
  • It reads a clock (now) for live timers; pass one clock for the whole page rather than one per component.
  • Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.

Guides

Oxyn · 74 free components · 264 Pro components · 96 screens · 20 blocks · Dioxus and GPUI