- Components
- Feedback
- Skeleton
Skeleton
Use to show a placeholder while content is loading.
card.tsx
Installation
CLI
Manual
npm
pnpm
yarn
bun
Usage
Use the Skeleton
component to show a placeholder while content is loading.
Options
Children
If you do not pass a fixed size, skeleton will take the size of the children.
children.tsx
Show
Use the show
prop to show/hide the skeleton.
show.tsx
Examples
Loading data from an API
Some text loaded from API.
api-simulation.tsx
Wrapping children with fixed size
If you do not pass a fixed size, it will be calculated automatically.
fixed-size-children.tsx
API Reference
Skeleton
accepts all HTML div
element props and the following:
Prop | Type | Default | Description |
---|---|---|---|
show | boolean | true | Weather the visual style should be filled. |
Last updated on 10/11/2024