Primitives

Badge

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

softDraftScheduledPaidDue soonOverdueNew
solidDraftScheduledPaidDue soonOverdueNew
outlineDraftScheduledPaidDue soonOverdueNew
dotDraftScheduledPaidDue soonOverdueNew
special ProNewGate onlineLive712

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