# Loading Shimmer

> A light sweep across text while something loads.

## Spec sheet

| | |
| --- | --- |
| Access | Free: no account, free for commercial use |
| Shelf | Components › Loaders & Progress |
| Live preview | https://uibrik.com/components/loading-shimmer |
| Writes | 1 file into `components/uibrik/loading-shimmer/` |
| Packages | `motion` (the CLI installs them) |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Nov 9, 2026 |

## Add it

```bash
npx shadcn@latest add https://uibrik.com/r/loading-shimmer.json
```

With the `@uibrik` namespace in `components.json` ([setup](https://uibrik.com/docs/installation.md)): `npx shadcn@latest add @uibrik/loading-shimmer`.

Can't run commands? https://uibrik.com/components/loading-shimmer/prompt.txt has every file verbatim, with the setup steps, ready for an assistant to write.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

```tsx
import { LoadingShimmer } from "@/components/uibrik/loading-shimmer/loading-shimmer";

<LoadingShimmer
  play={0}
  text="Thinking…"
  duration={1.2}
  passes={2}
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/loading-shimmer.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `text` | `string` | `"Thinking…"` | The copy to animate. |
| `duration` | `number` | `1.2` | Time for one pass of the highlight. |
| `passes` | `number` | `2` | Passes per play. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `play` (required) | `number` |  | Each change plays the effect again; 0 shows its resting state. |

## Where it fits

- **AI thinking states**: A light sweep across "Thinking" text shows the model is working without a spinner. Pairs with [Streaming Chat](https://uibrik.com/components/streaming-chat.md) (Pro).
- **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](https://uibrik.com/components/skeleton.md).

## Same shelf: Loaders & Progress

- [Progress](https://uibrik.com/components/progress.md): A quiet card of work in flight: each row is the app's mark, what's happening and a thin bar, and opens like a dropdown into facts, steps or one bar per destination. Values ease on a spring, percentages count with the fill, and finishing draws a check.
- [Send](https://uibrik.com/components/send.md): File upload that fills, then launches a paper plane out of the card.
- [Skeleton](https://uibrik.com/components/skeleton.md): A skeleton measured from the real layout: one bar per wrapped line of text, a box for every image and control, one shimmer across them all, and a top-to-bottom reveal when the content arrives.
- [Spinner](https://uibrik.com/components/spinner.md): A small family of loading indicators (ring, radial, dots, bars, orbit) drawn on one grid with one stroke and tempo.
- [Dot Matrix Loader](https://uibrik.com/components/dot-matrix-loader.md) (Pro): A grid of dots with a motion for each kind of work, from loading, thinking and reasoning to syncing, routing and monitoring. It fills in for progress, and ends with a green burst on success or a red flash and shake on error.
- [File Dropzone](https://uibrik.com/components/file-dropzone.md) (Pro): A dropzone that wakes when files are dragged over the window, counts what you hold and warns before the drop, then uploads a few at a time with speed, time left, pause, retry and drag-to-reorder rows.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/loading-shimmer/` so the import paths keep resolving.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
