- Android
- iOS
- Web
Skeleton
A Skeleton component is a placeholder UI element that represents the layout of content before it loads. It typically features a grey or light-colored shape mimicking the structure of the actual content (such as text blocks, images, or buttons) to indicate that loading is in progress. Skeleton components enhance user experience by providing a visual cue that content is being fetched, reducing perceived loading times and preventing layout shifts.
Example.tsx
| Name | Type | Default | Details |
|---|---|---|---|
| className | string | Optional | Supported Tailwind-style utilities, resolved entirely in Rust. See the engine README. |
| width | number | Optional | |
| height | number | Optional | |
| role | string | Optional | |
| accessibilityLabel | string | Optional |