Skip to content

KSkeleton ​

示例 ​

Variants

Placeholder skeleton element for loading states, with text, circle, and rectangle variants.

Props ​

NameTypeDefaultDescription
variant'text' | 'circle' | 'rectangle''rectangle'Shape variant of the skeleton.
widthstring—Explicit width (e.g. '100px', '50%').
heightstring—Explicit height.
animatedbooleantrueWhether to show the pulse animation.
classstring—Additional CSS classes.

Basic Usage ​