# Bar Wave Loader

Bar wave loading spinner: a row of five paper-lit pill bars that rise and fall in a staggered wave, each tinted by its own palette. A status element labelled Loading; reduced motion swaps the wave for a slow fade.

Component · Loader · https://01orbital.dev/docs/components/bar-wave-loader

## Installation

```bash
npx shadcn@latest add @01orbital/bar-wave-loader
```

## Usage

```tsx
import { BarWaveLoader } from "@/components/loader/bar-wave-loader"

export default function BarWaveLoaderDemo() {
  return <BarWaveLoader size={96} />
}
```

This example installs with everything it uses:

```bash
npx shadcn@latest add @01orbital/bar-wave-loader-demo
```

## API reference

A row of paper pills that rise and fall in a wave, for a loading state. Each pill 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 pills pulse in opacity instead of growing.

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `size?` | `number` | `64` | Height in px; the whole row scales with it. |
| `palettes?` | `CloudPalette[]` |  | One tint per pill, left to right; the list length sets the pill count. |

## Dependencies

npm: `cn`

## Examples

- **Bar Wave Loader Ember Three** (`@01orbital/bar-wave-loader-ember-three`): Bar Wave Loader Ember Three: an example of bar-wave-loader.
- **Bar Wave Loader Indigo Tide** (`@01orbital/bar-wave-loader-indigo-tide`): Bar Wave Loader Indigo Tide: an example of bar-wave-loader.
