Patterns

Avatar

Colour from the name (same person, same colour); status dot, verified tick, gradient ring, square for organisations.

5 examples 2 animated · 1 Pro Code and Figma for each
KANJSIFARHGCBT
KANJSIFA+2

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.

Sizes

sm in tables, md in lists, lg and xl in headers, 2xl on a profile.

KAKAKAKAKA

Status

Online, away, busy or offline, as a dot on the corner.

NJSIFARH

Gradient ring and verified

The brand ring marks the owner or the current user; the tick, a verified account.

KA

Organisation

Square for companies and places, so they never read as people.

GCBT

Stack

A team in a row, with a count for the rest.

KANJSIFA+2

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.

Stack that spreadsFree

The faces fan out on hover, so each one can be seen.

KANJSIFARH

Live ring Pro

A turning brand ring and a LIVE tag: someone presenting or on a call.

NJLive

Import#

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

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

Props#

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

<Avatar>

src/components/ui/avatar.tsx
PropTypeDefaultDescription
namerequiredstring—
srcstring | null—
sizekeyof typeof sizes"md"
statuskeyof typeof STATUS—
verifiedboolean—
ring"gradient"—
shape"circle" | "square""circle"
classNamestring—

<AvatarStack>

src/components/ui/avatar.tsx
PropTypeDefaultDescription
namesrequiredstring[]—
maxnumber4
sizekeyof typeof sizes"sm"

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