Skip to content

MazSkeleton ​

MazSkeleton is a standalone component to display loading placeholders with animated shimmer effect

Before use it, you should install the MazUi plugin in your project, follow instructions in Getting Started

TIP

This component can be translated globally using the MazUi plugin.

Basic usage ​

The skeleton displays a loading placeholder with a shimmer animation by default.

Loading...

Shapes ​

Use the shape prop to change the skeleton shape: rectangle (default), circle, or square.

Loading...
rectangle
Loading...
circle
Loading...
square

Sizes ​

Use the size prop to set both width and height (for circle and square shapes), or use width and height props for more control.

Loading...
Loading...
Loading...
Loading...

Custom dimensions ​

For rectangles, use width and height props for precise control.

Loading...
Loading...
Loading...

Rounded sizes ​

Control the border radius using the rounded-size prop.

Loading...
none
Loading...
sm
Loading...
md
Loading...
lg
Loading...
xl
Loading...
full

Disable animation ​

Use the animated prop set to false to disable the shimmer animation.

Loading...
animated
Loading...
static

Card skeleton example ​

Combine multiple skeletons to create loading placeholders for complex layouts.

Loading...
Loading...
Loading...

Article skeleton example ​

Create an article loading placeholder with various skeleton elements.

Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...

List skeleton example ​

Create a list loading placeholder.

Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...

Accessibility ​

The component includes proper accessibility attributes:

  • role="status" to indicate loading state
  • aria-live="polite" for screen reader announcements
  • Customizable aria-label and loading-text props
Please wait while loading...

Props ​

NameDescriptionTypeRequiredDefaultPossible values
shapeSkeleton shape type'circle' | 'rectangle' | 'square'Norectanglecircle, rectangle, square
sizeSize with units (ex: '2rem', '40px', '3em')SizeUnitNo1rem-
widthCustom widthSizeUnitNoundefined-
heightCustom heightSizeUnitNoundefined-
animatedDisable animationbooleanNotrue-
rounded-sizeControls the border radius'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full' | 'base'Nobasenone, sm, md, lg, xl, full, base
aria-labelAccessibility labelstringNoskeleton.ariaLabel' (translations)-
loading-textLoading text for accessibilitystringNoskeleton.loadingText' (translations)-