Shimmer
Preview

Animated text shimmer for transient chat states.

Overview

Shimmer renders animated text for temporary chat states such as thinking, searching, or streaming.

Usage

import { Shimmer } from "@tilt-legal/cubitt-components/chat-elements";

Examples

Default

Heading

API Reference

Shimmer

Animated text shimmer for transient chat states.

PropTypeDefaultDescription
childrenstring-Text to render with the shimmer effect. Required.
askeyof JSX.IntrinsicElements"p"Intrinsic element used for the text node.
durationnumber2Duration in seconds for one shimmer animation cycle.
spreadnumber2Multiplier used to size the moving shimmer highlight.
classNamestring-Additional CSS classes for the rendered text component.

When users prefer reduced motion, Shimmer renders static text-fg-2 text and disables the infinite shimmer animation.

On this page