Modus UI

Tile Wait

Web (React)

A dot-grid progress indicator with a ticking timer and a mono caption.

Tiles ripple outward from the centre while work runs, then resolve into a check or a cross with the elapsed time. Colours follow currentColor and the Modus theme tokens.

Composing0.0s
Modus / Tile Wait

Installation

CLI

npx @modus-ui/cli add tile-wait

Manual

  1. Copy the code from the component tab.
  2. Create a file at components/ui/tile-wait.tsx.
  3. Paste the code.

Usage

tsx
import { TileWait } from "@/components/ui/tile-wait";

export default function Example() {
  return <TileWait />;
}

Props

PropTypeDefaultDescription
labelstring"Composing"-
doneLabelstring"Done in"-
errorLabelstring"Failed after"-
statusstring"working"-
patternstring"ripple"-
gridnumber3-
shapestring"square"-
colorstring"currentColor"-
doneColorstring"hsl(var(--primary))"-
errorColorstring"hsl(var(--destructive))"-
cellSizenumber5-
gapnumber3-
fontSizenumber12-
stepnumber90-
idleOpacitynumber0.15-
glowbooleanfalse-
glowColorstring""-
showTimerbooleantrue-
elapsedany--
styleany--

Comments

  • No comments yet.