Badge

Small raised chips for status and counts.

View as Markdown
RewardNewLevel 7RipeRain soonSunnyWiltedPlot 4

Installation

npx shadcn@latest add @cozy/badge

Usage

import { Badge } from "@/components/ui/badge"

<Badge variant="success">Ripe</Badge>

Examples

Bounce

bounce makes a badge bob gently to draw the eye. Use one at a time.

+120

API

Everything else is passed through to the underlying element or Radix primitive.

PropTypeDefaultDescription
variant"default" | "primary" | "secondary" | "success" | "info" | "accent" | "destructive" | "outline""default"Default is the reward colour.
bouncebooleanfalseIdle bobbing motion.