Shimmer

A text shimmer sweep, used for pending or thinking states.

$bunx shadcn@latest add @nx-ui/ai-shimmer
Registry item
Installs withutils

Default

A light sweep animates across the text to signal an in-progress state.

Thinking…

Longer copy

The sweep scales to the length of the string, so multi-word phrases read smoothly.

Searching the web and reading sources…

Speed and spread

Tune `duration` to change the sweep speed and `spread` to widen the highlight.

Fast sweep

Slow sweep

Wide highlight

API reference

Exported parts and their props, extracted from the component source.

PropTypeDefaultDescription
children*string
asElementType
classNamestring
durationnumber2
spreadnumber2