TidalUI

Skeleton preview

Loading placeholders with a shared shimmer and content reveal.

free · Feedback · primitive

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add https://tidalui.com/r/skeleton.json

Import components/ui/tidal.css, components/ui/skeleton.css. Wrap installed components in tidal-scope.

Preview

Skeleton component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/skeleton.css";
import{TidalSkeleton}from"./components/ui/skeleton";
export default()=><div className="tidal-scope"><TidalSkeleton/></div>;

API and props

TidalSkeleton.animated
boolean | undefined

Optional animated value accepted by this exported component.

TidalSkeleton.height
Property.Height<string | number> | undefined

Optional height value accepted by this exported component.

TidalSkeleton.shape
"circle" | "line" | "rounded" | undefined

Optional shape value accepted by this exported component.

TidalSkeleton.width
Property.Width<string | number> | undefined

Optional width value accepted by this exported component.

TidalSkeletonRegion.children (required)
ReactNode

Required children value accepted by this exported component.

TidalSkeletonRegion.label (required)
string

Required label value accepted by this exported component.

TidalSkeletonRegion.loading (required)
boolean

Required loading value accepted by this exported component.

TidalSkeletonRegion.placeholder (required)
ReactNode

Required placeholder value accepted by this exported component.

TidalSkeletonRegion.animateHeight
boolean | undefined

Disable for content that must overflow its box or has an externally fixed height.

TidalSkeletonRegion.announce
boolean | undefined

Optional announce value accepted by this exported component.

TidalSkeletonRegion.loadingLabel
string | undefined

Optional loading label value accepted by this exported component.

TidalSkeletonRegion.readyLabel
string | undefined

Optional ready label value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas