Skip to content
synccn

Shimmer Text

A light sweep across text for loading moments.

Generating your theme

Thinking…

Playground

Change the props and copy the code. The controls come from the component's TypeScript types.

Generating a summary…

Props

duration2.4
import { ShimmerText } from "@/components/ui/shimmer-text";<ShimmerText>Generating a summary…</ShimmerText>

Installation

$ pnpm dlx shadcn@latest add @synccn/shimmer-text

First time in this project? Connect synccn with one command.

Usage

import { ShimmerText } from "@/components/ui/shimmer-text";<ShimmerText>Thinking…</ShimmerText>

API reference

Generated from the component's TypeScript types, so it always matches the code.

ShimmerText

Text with a light sweep passing across it — good for "thinking…" states.

  • duration
    number

    Default 2.4

    Seconds per sweep.

  • children
    React.ReactNode

    Content to render.

  • className
    string

    Extra classes for the root element.

Dependencies

Read from the component's imports when the site builds. The CLI installs all of these for you.

Helpers

npm packages

Accessibility

From the source

Read from this component's code when the site builds, so it can't drift.

  • ARIA attributes: aria-hidden, aria-label