Loader

Used for the loading status of a page or a block.

When To Use

  • When part of the page is waiting for asynchronous data or during a rendering process, an appropriate loading animation can effectively alleviate users' inquietude.

Basic Usage

A simple loading status.

Loading...

Variants

Different visual styles for the loading indicator.

Loading...
Spinner
Loading...
Dots
Progress

Sizes

A small loader is used in text, default loader in card-level blocks, and large loader in pages.

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

With Custom Content

Customized description content and icons.

Saving changes...
Loading...
Uploading fileThis might take a few moments
Loading...

API Reference

Property
Description
Type
Default

variant

The visual style of the loader (spinner, dots, progress). 'spinner' | 'dots' | 'progress' 'spinner'

size

The size of the loader (sm, md, lg, xl). 'sm' | 'md' | 'lg' | 'xl' 'md'

label

Primary text displayed below the loader. string -

description

Secondary text displayed below the label. string -

active

Whether the loader is visible. boolean true

animation

Whether the loader is animating. boolean true