Skeleton

Skeleton is used to give the user a temporary visual feedback while the content is loading or being processed. It is a simple and minimalistic version of the actual content to be displayed.

Read more about this component in the Aksel documentation.

Properties

PropertyDescriptionDefault
Control
Properties
as

Changes the HTML element used for the skeleton.

"div" "span"
"div"
height

When not inferring height from children, you must specify height.

string
-
variant

Changes the shape of the skeleton.

"circle" "rectangle" "rounded" "text"
"text"
width

When not inferring width from children, you must specify width.

string
-
Snippets
children

Fit the skeleton to the size of the children.

 -

Properties included from: HTMLAttributes<HTMLDivElement | HTMLSpanElement>