Skeleton
This animated box element can be used for composing skeleton layouts.
- Figma:Ready
- Web:Ready
- iOS:Ready
- Package:Core
Usage
import { Skeleton } from "@caesars-ui/core"
The Skeleton component is a simple composable placeholder element for constructing Skeleton layouts.
Properties
* indicates required.
Accessibility
Principle
Status
Description
Percievable
Ready
The Skeleton component provides a visually distinguishable animated box element that serves as a placeholder in skeleton layouts. It utilizes appropriate sizing and border radius to create a recognizable placeholder shape. The component is designed to be noticeable and draw attention to the layout structure.
Operable
Ready
The Skeleton component itself is not directly operable, as it is a visual placeholder rather than an interactive element. However, it should not interfere with the operability of other elements on the page, allowing users to interact with the available content while the skeleton layout is displayed.
Understandable
Ready
The purpose of the Skeleton component is clear, providing a placeholder element for constructing skeleton layouts. The width and height properties allow customization of the size of the skeleton element, ensuring it aligns with the intended layout structure. The rounded property controls the border radius, allowing variations in the appearance of the skeleton element.
Robust
Ready
The Skeleton component is designed to be compatible with assistive technologies, ensuring that screen readers can understand and convey the presence of the skeleton layout. It functions consistently across different browsers and platforms. The component can be easily integrated into various parts of the application to create consistent skeleton layouts.