Shimmering Skeleton Wrapper
Wrap any placeholder and a light sweep breathes across it.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
children | React.ReactNode | - | Placeholder geometry to wrap. Use SkeletonBox / SkeletonLine / SkeletonCircle helpers. |
loading | boolean | true | Show the skeleton shimmer. When false, renders children with no shimmer. |
duration | number | 1.6 | Sweep cycle duration in seconds. |
highlight | string | "var(--shimmer-hi)" | Highlight color of the moving slice. |
base | string | "var(--shimmer-base)" | Resting color of each placeholder box. |
rounded | string | - | Optional border-radius class applied to the wrapper. |