Loading State

Pixel-grid loader with shimmer and elapsed time.

Installation

pnpm dlx shadcn@latest add @ward/loading-state

Add the Ward registry to components.json once:

"registries": {
  "@ward": "https://ward.so/r/{name}.json"
}

Or install from the URL with no configuration: npx shadcn@latest add https://ward.so/r/loading-state.json

Usage

import LoadingState from "@/components/ward/LoadingState";
<LoadingState variant="Dots" label="Indexing files" />

Props

PropTypeDefaultDescription
labelstring-Status text beside the loader; falls back to 'Working', or 'Background task' for Surfer.
variant"Drive" | "Dots" | "Orbit" | "Surfer""Drive"Grid style and motion used for the loader, with Surfer adding a video card below it.
videoSrcstring-Video URL played in the Surfer card; without it the card shows a placeholder message.

Ward · Version 1.1.0 · Registry manifest