ShimmerText

Text with a light sweeping across it, the working-on-it look. AI.

Open playground

About

ShimmerText is a React component in the AI category of smoui. It is typed, ships no stylesheet, follows your theme through CSS variables, and honors prefers-reduced-motion. Import it with import { ShimmerText } from "@ashutoshswamy/smoui" and set text, duration.

Install

Terminal
npm i @ashutoshswamy/smoui

Usage

TSX
import { ShimmerText } from "@ashutoshswamy/smoui";

<ShimmerText text="Thinking through your question…" className="text-xl font-medium" />

Props 2

text

Text to shimmer.

string
duration

Seconds per sweep.

numberdefault 1.8