Skeleton
A placeholder component for loading content.
Usage
The Skeleton component is used to create placeholder loading states for content that is still being fetched or rendered.
Theming
The Skeleton component supports two themes: light
(default) and dark
. Use the theme
prop to change the appearance.
Complex layouts
You can create more complex loading states by combining multiple <Skeleton>
components with Tailwind styles via the className
prop.
API Reference
Skeleton
Inherits properties from HTMLElement
.
Prop | Type | Default |
---|---|---|
className | string | |
theme | "light" "dark" | "light" |