Black Friday: 30% off Pro

Get 30% off

Updated

Loading Shimmer

Preview

Thinking…

Customize

Duration1.2s
Passes2
Text size48px

Installation

npx shadcn@latest add https://uibrik.com/r/loading-shimmer.json
Adds the files to components/uibrik/loading-shimmer and installs motion. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/loading-shimmer.

Usage

import { LoadingShimmer } from "@/components/uibrik/loading-shimmer/loading-shimmer";​<LoadingShimmer  play={0}  text="Thinking…"  duration={1.2}  passes={2}/>

Where to use Loading Shimmer

  • AI thinking states

    A light sweep across "Thinking" text shows the model is working without a spinner.

    Pairs with Streaming Chat

  • Status labels

    Shimmering text works for "Saving" or "Syncing" messages in a toolbar.

  • Slow request placeholders

    A sweep across placeholder text signals the content is coming.

    Pairs with Skeleton

Props

LoadingShimmer
text
Type string
"Thinking…"
The copy to animate.
duration
Type number
1.2
Time for one pass of the highlight.
passes
Type number
2
Passes per play.
playrequired
Type number
–
Each change plays the effect again; 0 shows its resting state.