Skip to content
daisyBlazor

Loading

A small animated indicator in six styles: spinner, dots, ring, ball, bars and infinity. Use it inline or inside a card while content loads.
Feedback.loading
Cover · <Loading>

Examples

Types

Type picks the animation; Color tints it with any theme colour.

website/Examples/Feedback/LoadingTypesExample.razor Source

Sizes

Size covers small to large; SizeOverride takes loading-xs or loading-xl for the extremes.

website/Examples/Feedback/LoadingSizesExample.razor Source

In context

Next to a line of text, or centred in the space the content will fill.

Fetching invoices from the archive…

website/Examples/Feedback/LoadingInlineExample.razor Source

Playground

Type LoadingType
Size Size
Color Color
<Loading
         Type="LoadingType.Bars"
         Size="Size.Large"
         Color="Color.Primary" />

API

<Loading>

DaisyBlazor

Parameters

  • AriaLabel string
    = null

    Accessible name announced by the role="status" indicator. Null uses the app-wide Strings.

  • Color Color
    = Color.Default

    Semantic color applied as a Tailwind text-* utility (e.g. Color.Primary → "text-primary").

  • Size Size
    = Size.Medium

    Size of the indicator using the standard Size enum (Small → loading-sm, Medium → loading-md, Large → loading-lg). For xs or xl pass SizeOverride instead.

  • SizeOverride string
    = null

    Raw daisyUI size token when xs or xl is needed ("loading-xs" or "loading-xl"). When set, takes precedence over Size.

  • Type LoadingType
    = LoadingType.Spinner

    Animation style of the loading indicator.

  • Class string
    = null

    Additional CSS classes merged onto the loading element.

  • Style string
    = null

    Inline styles applied to the loading element.

Something went wrong while running the docs. Reload