Primitives

Badge

Status is always dot + text + hue. Soft by default; solid, outline, dot, gradient and live when the context asks for it.

7 examples 3 animated · 1 Pro Code and Figma for each
softDraftScheduledPaidDue soonOverdueNew
solidDraftScheduledPaidDue soonOverdueNew
outlineDraftScheduledPaidDue soonOverdueNew
dotDraftScheduledPaidDue soonOverdueNew
special ProNewGate onlineLive712

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.

Soft

The default for status in tables and cards: a dot, the word, and a tint.

DraftScheduledPaidDue soonOverdueNew

Solid

Filled: for the one status that must stand out on a busy screen.

DraftScheduledPaidDue soonOverdueNew

Outline

A hairline only: quiet status on coloured or image backgrounds.

DraftScheduledPaidDue soonOverdueNew

Dot

Just the dot and the word: for dense lists where tints would be noise.

DraftScheduledPaidDue soonOverdueNew

Gradient

In the brand gradient: for Pro, New and upgrade marks.

ProNew

Live

A pulsing dot: something is happening right now.

Gate onlineLive

Count

A number on its own: unread, waiting, in the cart.

712128

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.

Count bumpFree

The count pops each time it changes, so new items are noticed.

Inbox 3

Glowing newFree

A soft glow breathes behind a New badge on a menu item.

TemplatesNew

Shimmer Pro

A band of light crosses the badge: for Pro marks on a pricing page.

Pro

Import#

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

your-component.tsx
import { Badge, CountBadge, StatusBadge } from "@waveinno/ui";

Props#

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

<Badge>

src/components/ui/badge.tsx
PropTypeDefaultDescription
dotbooleantrue
variant"soft" | "solid" | "outline" | "dot" | "gradient" | "live""soft"

Also takes HTMLAttributes<HTMLSpanElement> & VariantProps<typeof badgeVariants>.

<CountBadge>

src/components/ui/badge.tsx
PropTypeDefaultDescription
valuerequiredstring | number—
tone"neutral" | "danger""neutral"
classNamestring—

<StatusBadge>

src/components/ui/badge.tsx
PropTypeDefaultDescription
labelrequiredstring—
toneTone"neutral"
variant"soft" | "solid" | "outline" | "dot" | "gradient" | "live"—
classNamestring—

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