Skeleton

The shape of the content before the content arrives, so the layout does not move when it does.

Anotomy

Structure of the skeleton and how its internal parts are composed. These are its semantic parts, so they are also what the classNames and styles objects accept.

Skeleton

Skeleton anotomy
NameDescription
1rootThe whole placeholder. active runs the shimmer across every part.
2headerThe column holding the avatar. It renders when avatar is set.
3sectionThe column holding the title and the paragraph.
4avatarThe round or square block from avatar.
5titleThe first bar, from title. Its default width changes with the avatar and the paragraph.
6paragraphThe lines under the title. paragraph.rows sets how many, and the last one is shorter.

Elements

From the left: Skeleton.Avatar, Skeleton.Button, Skeleton.Input, Skeleton.Image and Skeleton.Node. Each takes the same two keys.
Skeleton element anotomy
NameDescription
1rootThe wrapper around one element.
2contentThe gray shape itself. Size it through classNames.content or style.