Shimmer Text

A light sheen that glides across text, for loading states and quiet CTAs.

no dependenciesMIT · free
Thinking about waves…

Generating your component

Installation

npx shadcn@latest add https://ombakui.com/r/shimmer-text.json

Usage

import { ShimmerText } from "@/components/shimmer-text";

<ShimmerText>Generating your component</ShimmerText>

Props

PropTypeDefaultDescription
children*ReactNode–
asElementType"span"HTML tag to render.
baseColorstringa muted version of your theme's foregroundResting text color.
shimmerColorstringyour theme's foregroundColor of the moving sheen.
durationnumber2400Milliseconds for one sweep.
spreadnumber20Width of the sheen, in % of the text width.
classNamestring–