Loader

A loader indicates that content is being loaded.

Installation

npx shadcn@latest add @dotui/loader

Usage

import { Loader } from '@/components/ui/loader'
<Loader />

Accessibility

Loader renders a React Aria ProgressBar and has no visible text, so pass aria-label to name the operation for screen readers.

<Loader aria-label="Loading" />

Examples

Basic

In Button

In Input

Loading Overlay

Loading content...

API Reference

A loader displays an animated spinner that indicates an operation is in progress.

PropType
number
number
number
number
boolean
number
ReactNode
ReactNode | function
NumberFormatOptions

Last updated on 7/9/2026