Components

Plasma Loader

An animated React loading spinner with a plasma effect: soft blobs orbit a ring and fuse together through an SVG gooey filter. Built with Motion and Tailwind CSS, sized with one prop, and accessible out of the box with a status role and screen-reader label.

  • Gooey SVG filter
  • Any size & color
  • role="status"
  • Screen-reader label
  • prefers-reduced-motion
LoadingLoadingLoading

Installation

$ npx shadcn@latest add https://duskui.com/r/plasma-loader.json

Usage

loading.tsx
import { PlasmaLoader } from "@/components/dusk/neon/plasma-loader"

export default function Loading() {
  return (
    <div className="grid min-h-dvh place-items-center">
      <PlasmaLoader size={64} label="Loading dashboard" />
    </div>
  )
}

Examples

Colors & speed

Mix two colors with color and secondaryColor, and change the orbit time with speed.

LoadingLoadingLoading

Inline status

At small sizes it sits next to text, for example while an AI response streams. Give it a specific label for screen readers.

Generating responseGenerating response…

API Reference

Also accepts any <span> prop for the status wrapper.

PropTypeDefaultDescription
sizenumber48Width and height in px.
colorstringvar(--color-primary)Main plasma color.
secondaryColorstring—Second color mixed into the plasma. Defaults to a whiter tint of color.
speednumber1.6Seconds for the main blob to complete one orbit.
labelstring"Loading"Text announced to screen readers.

Accessibility

  • The wrapper has role="status" and a visually hidden label, so assistive tech announces what is loading.
  • All visual layers are aria-hidden.
  • The motion is a smooth orbit with no flashing.
  • With prefers-reduced-motion the blobs stop orbiting and the plasma gently pulses instead, so it still reads as busy.
  • Fixed width and height mean swapping it in and out never shifts layout.