Skip to content
  • 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.

Live examples

Example.tsx

Attributes

NSkeleton attributes
NameTypeDefaultDetails
classNamestringOptionalSupported Tailwind-style utilities, resolved entirely in Rust. See the engine README.
widthnumberOptional
heightnumberOptional
rolestringOptional
accessibilityLabelstringOptional
Engine reference for SkeletonSet up engine components

Tags