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.
# Demo
Demo Coming Soon
Skeleton examples will be available soon.
# Usage
# Attributes
Name | Type | Default | Details |
---|---|---|---|
className | string | ' ' | You can customise by passing tailwind classes. |
role | string | Optional | ARIA role for accessibility. |
aria-busy | boolean | Optional | ARIA busy state. |
aria-live | 'off' | 'polite' | 'assertive' | Optional | ARIA live region. |
# Tags