Shimmer Text
Text with a shimmer animation for loading and in-progress states, always on or toggled with a graceful stop.
import { ShimmerText, ShimmerableText } from "@plexui/react-native"Examples
Overview
Platforms
| iOS 26 | Android | |
|---|---|---|
| Native component | None: the Plex shimmer (SwiftUI's shimmering text is a modifier of its own) | None: the Plex shimmer |
| Look | A light band sweeping across the text every 3 seconds | A light band, 160dp wide, crossing the text in 1.2 seconds |
API
ShimmerText: always shimmering
| Prop | Type | Default | Description |
|---|---|---|---|
as | "p" | "span" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div" | "div" | The element it stands for; h1 to h6 are read as a heading |
children | ReactNode | — | Text content to shimmer |
size, weight, color, variant… | TextProps | — | The props of Text, for the type and color |
style | StyleProp<TextStyle> | — | Style of the text |
containerStyle | StyleProp<ViewStyle> | — | Style of the box around the text |
ShimmerableText: controllable shimmer
| Prop | Type | Default | Description |
|---|---|---|---|
as | "p" | "span" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div" | "div" | The element it stands for; h1 to h6 are read as a heading |
shimmer | boolean | false | Whether the shimmer animation is active |
children | ReactNode | — | Text content to shimmer |
size, weight, color, variant… | TextProps | — | The props of Text, for the type and color |
style | StyleProp<TextStyle> | — | Style of the text |
containerStyle | StyleProp<ViewStyle> | — | Style of the box around the text |