Skip to content

Loading

Indicates that content is being loaded or processed. Based on BrConfigProvider for global theme configuration, supporting both inline and fullscreen loading modes.

Basic Usage

The simplest loading indicator.

Example

Variants and Sizes

Supports five variants: spin, ring, pulse, dots, bar, and four sizes: sm, md, lg, xl.

30%
60%
Example

Inline and Text

Use the inline prop to display the loader inline with text, and use the text prop to add a loading message.

Data is loading...
Loading data...
Uploading-45%
Example

Fullscreen

Use the fullscreen prop to cover the entire screen, commonly used for page transitions or blocking operations.

Example

Theming

Customize globally via BrConfigProvider or locally via CSS variables.

70%
Example

Custom Color and Size

Pass color and size directly via props.

Fast!
Example

API

BrLoading

PropTypeDefaultDescription
variant'spin' | 'ring' | 'pulse' | 'dots' | 'bar''spin'Loading indicator variant
size'sm' | 'md' | 'lg' | 'xl''md'Size
colorstring-Custom color
customSizestring | number-Custom size (width/height)
fullscreenbooleanfalseWhether to show fullscreen mask
inlinebooleanfalseWhether to display inline
textstring-Loading text
progressnumber-Progress value (0-100), only for bar variant or with text
disabledbooleanfalseWhether disabled (dimmed/unclickable)
speednumber1Animation speed multiplier

BrLoadingSpinner

PropTypeDefaultDescription
variant'spin' | 'ring' | 'pulse''spin'Animation variant
size'sm' | 'md' | 'lg' | 'xl''md'Size
colorstring-Color
customSizestring | number-Custom size
speednumber1Speed

BrLoadingDots

PropTypeDefaultDescription
size'sm' | 'md' | 'lg' | 'xl''md'Size
colorstring-Color
customSizestring | number-Custom size
speednumber1Speed

BrLoadingBar

PropTypeDefaultDescription
size'sm' | 'md' | 'lg' | 'xl''md'Size
colorstring-Color
progressnumber-Progress value
speednumber1Speed