Skip to Content

Dot Wave Loader

Dot wave loading indicator: a row of four small paper-lit dots that hop in a staggered wave, each in its own tint. Sized by height; reduced motion replaces the hop with an opacity fade.

Installation

pnpm dlx shadcn@latest add @01orbital/dot-wave-loader

Usage

import { DotWaveLoader } from "@/components/loader/dot-wave-loader"

export default function DotWaveLoaderDemo() {
  return (
    <>
      <DotWaveLoader size={80} />
    </>
  )
}

This example installs with everything it uses:

pnpm dlx shadcn@latest add @01orbital/dot-wave-loader-demo

Examples

Emberdot-wave-loader-ember

Dot Wave Loader Ember: an example of dot-wave-loader.

pnpm dlx shadcn@latest add @01orbital/dot-wave-loader-ember

Midnightdot-wave-loader-midnight

Dot Wave Loader Midnight: an example of dot-wave-loader.

pnpm dlx shadcn@latest add @01orbital/dot-wave-loader-midnight

API reference

A row of small paper dots that bob up and down in a wave, for a loading state. Each dot takes its tint from one entry in palettes.

Exposes role="status" with the label "Loading"; pass aria-label to change it. With reduced motion the dots pulse in opacity instead.

Prop

Type

It also accepts the HTML attributes of the element it renders.

Dependencies

npm: cn. The CLI installs it for you.

Last updated on