Primitives

Spinner

Ring, dots, wave; five sizes; takes the text colour unless tone="brand". Keeps turning, slowly, under reduced motion.

5 examples 1 animated · 1 Pro Code and Figma for each

ring

LoadingLoadingLoadingLoadingLoadingLoading

dots

LoadingLoadingLoadingLoadingLoadingLoading

wave

LoadingLoadingLoadingLoadingLoadingLoading

Examples#

Each one on its own: copy its code into your app, or copy it to Figma and paste it on the canvas as layers.

Ring

The default, for anything that takes a moment.

Loading

Dots

Calmer: for waiting on someone or something else.

Loading

Wave

For audio, live data and connecting.

Loading

Sizes

xs inside text, sm in buttons, md to xl for panels and pages.

LoadingLoadingLoadingLoadingLoading

In a button

It takes the text colour, so it fits any button.

Animated#

Motion that earns its place: free ones to copy now, and Pro ones whose code and Figma copy come with a Wavi Pro licence. They respect the visitor's reduced-motion setting.

Orbit loader Pro

Brand dots orbiting a pulsing core: for loading a page or building a report.

Building the October report…

Import#

Everything comes from the package root. The example above uses:

your-component.tsx
import { Button, Spinner } from "@waveinno/ui";

Props#

Read from the source of this version, so they match the code exactly.

<Spinner>

src/components/ui/spinner.tsx
PropTypeDefaultDescription
variant"ring" | "dots" | "wave""ring"
sizekeyof typeof SIZE"md"
tone"current" | "brand""current"`current` follows the text colour; `brand` uses the primary (the gradient, for ring).
labelstring"Loading"
classNamestring—

<Button>

src/components/ui/button.tsx
PropTypeDefaultDescription
asChildbooleanfalse
loadingboolean—

Also takes ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<typeof buttonVariants>.

Install#

If the project does not have the package yet, add it, then follow the setup for Next.js or Vite once.

$ npm install @waveinno/ui