N
neokit

Loading

An animated CSS-only loading indicator. Renders a <span class="loading"> — no children needed. Six animation types, five sizes, and full color token support.

Types

Six animation styles.

loading types
spinner
dots
ring
ball
bars
infinity

Sizes

Five sizes — xs through xl.

loading sizes
xs
sm
md
lg
xl

Colors

Any DaisyUI color token via the color prop (maps to text-{color}).

loading colors
primary
secondary
accent
info
success
warning
error
neutral

All types colored

All six types at md size with primary color.

loading types colored
spinner
dots
ring
ball
bars
infinity

Inside a button

Use a small spinner inline with button text to show a pending state.

loading in button

Full-page overlay

Center a large spinner over a content area using inset-0 flex items-center justify-center.

loading overlay