Skip to content

Badge

GitHub

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

DescriptionThe style variant of the badge
Typeprimary | secondary | outline | success | error | warning | undefined
Defaultprimary

size

DescriptionThe size of the badge
Typesm | md | lg | undefined
Defaultmd