Skip to content

Skeleton Component

Display Skeleton component with different styles and types.

Properties

NameTypeDefaultDescription
variant"line" | "rect" | "circle""line"The variant of the skeleton.
animation-mode"progress" | "pulse" | "none""progress"The animation mode of the skeleton.
widthstring"100%"The width value of the skeleton.
heightstring"20px"The height value of the skeleton.

CSS Parts

NameDescription
skeletonThe skeleton element

Check this link to learn how to use CSS parts for Skeleton Component.

CSS Properties

TokenDefaultDescription
--tap-skeleton-background--tap-sys-color-surface-tertiaryBackground color of the skeleton
--tap-skeleton-radius--tap-sys-radius-2Border radius of the skeleton
--tap-skeleton-width100%Width of the skeleton
--tap-skeleton-height--tap-sys-spacing-8Height of the skeleton
--tap-skeleton-rect-radius--tap-sys-spacing-0Border radius of the skeleton variant rect
--tap-skeleton-circle-radius--tap-sys-radius-fullBorder radius of the skeleton variant circle
--tap-skeleton-circle-width--tap-sys-spacing-10Width of the skeleton variant circle
--tap-skeleton-circle-height--tap-sys-spacing-10Height of the skeleton variant circle