Text Shimmer
Shimmering placeholder text while a token stream starts.
Import
tsx
import { TextShimmer } from "@cronus-ui/ui";
bash
npx cronus-ui add text-shimmer
Examples
.cronus
The same component declared in Cronus. Emitted at build time from the audit fixtures — the kernel renders it as HTML with no React.
default.cronus
app "audit-fixtures" {
port 5176
}
style {
preset aurora
theme dark
}
component TextShimmerDefault layout:inline style:text-shimmer {
label "Loading"
}
page "/audit/text-shimmer/default" type:custom {
use TextShimmerDefault
}
API Reference
Generated from the component's exported types.
TextShimmerProps
| Prop | Type | Default | Description |
|---|---|---|---|
children* | string | — | Contents of the component. |
as | ElementType | — | — |
className | string | — | Additional class names merged onto the root. |
duration | number | 2 | — |
spread | number | 2 | — |