ngx-prompt-kit

Text Shimmer

A subtle gradient sweep across text — useful for placeholders, status labels, and 'thinking' states.

Examples

Default

Pass a text input or project content via ng-content.

Computing the optimal route...

Tuned duration and spread

Slower 6s sweep with a tighter 8% gradient stop.

Loading model weights...

Installation

Add the text-shimmer component (and the cn() utility) to your project.

ng generate ngx-prompt-kit:text-shimmer

Component API

PkTextShimmer

PropTypeDefaultDescription
textstring '' Text content (alternative: project via ng-content).
durationnumber 4 Animation period in seconds.
spreadnumber 20 Gradient stop spread, clamped to 5..45.
classstringExtra classes for the host span.