Badge
A versatile component that displays a badge with various styles and sizes.
Installation
npm
npx maiton add badge
Usage
import { Badge } from "../components/Badge";
<Badge>Badge</Badge>
Props
The Badge
component extends div
, so you can pass all standard div
props.
variant
Description | The style variant of the badge |
---|---|
Type | primary | secondary | outline | success | error | warning | undefined |
Default | primary |
size
Description | The size of the badge |
---|---|
Type | sm | md | lg | undefined |
Default | md |