Skip to Content

Color Field Loader

Color field loading animation: a small canvas of two color fields on a ground, breathing under grain and crossfading through any palettes you pass. Three sizes and a grisaille option; client component, reduced motion keeps only the fade.

pnpm dlx shadcn add @01orbital/color-field-loader

Usage

import { ColorFieldLoader } from "@/components/loader/color-field-loader"

export default function ColorFieldLoaderDemo() {
  return <ColorFieldLoader size="md" />
}

Examples

New

color-field-loader-framed-color-studies

color-field-loader-framed-color-studies

Framed Color Studies

Framed loader example showing the ColorFieldLoader on lilac paper with a gallery caption.

pnpm dlx shadcn add @01orbital/color-field-loader-framed-color-studies

API reference

A small color-field canvas, two soft fields on a ground, that breathes while content loads and can crossfade through a list of palettes.

Exposes role="status" with the label "Loading"; pass aria-label to change it. The fields breathe in opacity and scale; with reduced motion only the opacity changes.

Prop

Type

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

Dependencies

npm: cn. The CLI installs them for you.

Registry pieces it installs with it: