# Smelt — Animated Loader for React

> A staged multi-step loader: pending steps are cold gray stampings, the active step glows white under a shimmering underline, and completion quenches it into a checkmark stamped in a calm neutral — advancing on heavy mechanical detents.

- Page: https://crucibleui.com/components/loaders/smelt
- Category: [loaders](https://crucibleui.com/components/loaders)
- Tier: pro (one-time purchase, see https://crucibleui.com/pricing)
- Engine: motion
- npm dependencies: motion

## Install

```bash
npx shadcn@latest add @crucible/smelt
```

Pro install requires adding the token-bearing `@crucible` registry to components.json (issued at https://crucibleui.com/account after purchase).

Import from `@/components/crucible/smelt`.

## Props (`SmeltProps`)

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `steps?` | `SmeltStep[]` | — | Ordered status lines. Each is a stage of the operation. |
| `msPerStep?` | `number` | `2000` | Milliseconds each step holds before the next detent. |
| `loop?` | `boolean` | `true` | Restart from the first step after the last. |
| `loading?` | `boolean` | `true` | While true the loader runs; false stops the timer and quenches the current step. |
| `value?` | `number` | — | Controlled active index. When set, the internal timer is disabled. |
| `accentColor?` | `string` | `white` | Accent for the active step. |
| `steelColor?` | `string` | `neutral-300` | Color completed checkmarks settle to. |
| `visibleSteps?` | `number` | `5` | Rows visible in the window before the list starts detenting upward. |

Also accepts: `React.ComponentPropsWithoutRef<"div">`.

## Usage example

```tsx
import { Smelt } from "@/components/crucible/smelt";

export default function SmeltDemo() {
  return (
    <div className="relative isolate flex h-full min-h-[360px] w-full items-center justify-center overflow-hidden rounded-xl bg-neutral-950">
      <div
        aria-hidden
        className="pointer-events-none absolute inset-0 bg-[radial-gradient(ellipse_at_center,rgba(255,255,255,0.035),transparent_70%)]"
      />
      <div className="relative z-10 flex flex-col items-center gap-8">
        <Smelt />
        <p className="text-sm text-neutral-500">
          Watch the steps advance — each completed one lands a stamped check.
        </p>
      </div>
    </div>
  );
}
```

## Accessibility & performance

Honors `prefers-reduced-motion` with a designed static frame or fade (never a blank box) and passes `className` through.
