Skip to Content

Breathe Loader

Breathing loading indicator: a single paper-lit sphere with a crescent tint that slowly swells and settles on a three-second loop. Sized in pixels; reduced motion replaces the scale change with an opacity fade.

Installation

pnpm dlx shadcn@latest add @01orbital/breathe-loader

Usage

import { BreatheLoader } from "@/components/loader/breathe-loader"

export default function BreatheLoaderDemo() {
  return (
    <>
      <BreatheLoader size={128} />
    </>
  )
}

This example installs with everything it uses:

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

Examples

Mossbreathe-loader-moss

Breathe Loader Moss: an example of breathe-loader.

pnpm dlx shadcn@latest add @01orbital/breathe-loader-moss

Violet Nightbreathe-loader-violet-night

Breathe Loader Violet Night: an example of breathe-loader.

pnpm dlx shadcn@latest add @01orbital/breathe-loader-violet-night

API reference

A single paper orb that slowly swells and shrinks, for a loading state.

Exposes role="status" with the label "Loading"; pass aria-label to change it. With reduced motion the orb pulses 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