Loading

A family of components for displaying loading animations. Loading components provide visual indicators for users when content is being loaded or an action is in progress. DaisyUI Kit offers various loading animations with customizable sizes and colors.

Basic Usage

The simplest way to use loading animations is to render the desired component. You can use any of the loading variants individually, or display all at once for demonstration purposes.

Code Example
All.vue
LoadingSpinner Props Type Description
color
string

Sets the color of the loading animation. Options: - neutral - primary - secondary - accent - info - success - warning - error

   
neutral
boolean

Sets color to neutral.

   
primary
boolean

Sets color to primary.

   
secondary
boolean

Sets color to secondary.

   
accent
boolean

Sets color to accent.

   
info
boolean

Sets color to info.

   
success
boolean

Sets color to success.

   
warning
boolean

Sets color to warning.

   
error
boolean

Sets color to error.

size
string

Sets the size of the loading animation. Options: - xl - lg - md (default) - sm - xs

   
xl
boolean

Sets size to xl.

   
lg
boolean

Sets size to lg.

   
md
boolean

Sets size to md.

   
sm
boolean

Sets size to sm.

   
xs
boolean

Sets size to xs.

LoadingDots

The LoadingDots component displays a series of bouncing dots, providing a subtle loading indicator.

LoadingDots Props Type Description
color
string

Sets the color of the loading animation. Options: - neutral - primary - secondary - accent - info - success - warning - error

   
neutral
boolean

Sets color to neutral.

   
primary
boolean

Sets color to primary.

   
secondary
boolean

Sets color to secondary.

   
accent
boolean

Sets color to accent.

   
info
boolean

Sets color to info.

   
success
boolean

Sets color to success.

   
warning
boolean

Sets color to warning.

   
error
boolean

Sets color to error.

size
string

Sets the size of the loading animation. Options: - xl - lg - md (default) - sm - xs

   
xl
boolean

Sets size to xl.

   
lg
boolean

Sets size to lg.

   
md
boolean

Sets size to md.

   
sm
boolean

Sets size to sm.

   
xs
boolean

Sets size to xs.

LoadingRing

The LoadingRing component displays a rotating ring animation, providing a clean and minimal loading indicator.

LoadingRing Props Type Description
color
string

Sets the color of the loading animation. Options: - neutral - primary - secondary - accent - info - success - warning - error

   
neutral
boolean

Sets color to neutral.

   
primary
boolean

Sets color to primary.

   
secondary
boolean

Sets color to secondary.

   
accent
boolean

Sets color to accent.

   
info
boolean

Sets color to info.

   
success
boolean

Sets color to success.

   
warning
boolean

Sets color to warning.

   
error
boolean

Sets color to error.

size
string

Sets the size of the loading animation. Options: - xl - lg - md (default) - sm - xs

   
xl
boolean

Sets size to xl.

   
lg
boolean

Sets size to lg.

   
md
boolean

Sets size to md.

   
sm
boolean

Sets size to sm.

   
xs
boolean

Sets size to xs.

LoadingBall

The LoadingBall component displays a bouncing ball animation, providing a playful loading indicator.

LoadingBall Props Type Description
color
string

Sets the color of the loading animation. Options: - neutral - primary - secondary - accent - info - success - warning - error

   
neutral
boolean

Sets color to neutral.

   
primary
boolean

Sets color to primary.

   
secondary
boolean

Sets color to secondary.

   
accent
boolean

Sets color to accent.

   
info
boolean

Sets color to info.

   
success
boolean

Sets color to success.

   
warning
boolean

Sets color to warning.

   
error
boolean

Sets color to error.

size
string

Sets the size of the loading animation. Options: - xl - lg - md (default) - sm - xs

   
xl
boolean

Sets size to xl.

   
lg
boolean

Sets size to lg.

   
md
boolean

Sets size to md.

   
sm
boolean

Sets size to sm.

   
xs
boolean

Sets size to xs.

LoadingBars Props Type Description
color
string

Sets the color of the loading animation. Options: - neutral - primary - secondary - accent - info - success - warning - error

   
neutral
boolean

Sets color to neutral.

   
primary
boolean

Sets color to primary.

   
secondary
boolean

Sets color to secondary.

   
accent
boolean

Sets color to accent.

   
info
boolean

Sets color to info.

   
success
boolean

Sets color to success.

   
warning
boolean

Sets color to warning.

   
error
boolean

Sets color to error.

size
string

Sets the size of the loading animation. Options: - xl - lg - md (default) - sm - xs

   
xl
boolean

Sets size to xl.

   
lg
boolean

Sets size to lg.

   
md
boolean

Sets size to md.

   
sm
boolean

Sets size to sm.

   
xs
boolean

Sets size to xs.

LoadingInfinity Props Type Description
color
string

Sets the color of the loading animation. Options: - neutral - primary - secondary - accent - info - success - warning - error

   
neutral
boolean

Sets color to neutral.

   
primary
boolean

Sets color to primary.

   
secondary
boolean

Sets color to secondary.

   
accent
boolean

Sets color to accent.

   
info
boolean

Sets color to info.

   
success
boolean

Sets color to success.

   
warning
boolean

Sets color to warning.

   
error
boolean

Sets color to error.

size
string

Sets the size of the loading animation. Options: - xl - lg - md (default) - sm - xs

   
xl
boolean

Sets size to xl.

   
lg
boolean

Sets size to lg.

   
md
boolean

Sets size to md.

   
sm
boolean

Sets size to sm.

   
xs
boolean

Sets size to xs.

Examples

All Variants

Showcases all loading components together.

Code Example
All.vue

Spinner

Displays a spinning circle animation.

Code Example
Spinner.vue

Dots

Displays a series of bouncing dots.

Code Example
Dots.vue

Ring

Displays a rotating ring animation.

Code Example
Ring.vue

Ball

Displays a bouncing ball animation.

Code Example
Ball.vue

Bars

Displays animated vertical bars.

Code Example
Bars.vue

Infinity

Displays an animated infinity symbol.

Code Example
Infinity.vue

Colors

All loading components support color customization. Try different color props.

Code Example
Color.vue

Sizes

All loading components support size customization. Try different size props.

Code Example
Size.vue