Badge

Displays a badge or a component that looks like a badge.

Usage

PreviewCode
SolidSecondaryOutlineDestructive

API Reference

InputTypeDefault
variant BadgeVariants['variant'] 'solid'
class string ''

CVA variants

PropOptionsDefault
variant solid | secondary | outline | destructive solid

Component Source

Install via CLI:npx @voltui/cli add badge
TypeScript
Loading editor…

Copy this code to your project. The component uses class-variance-authority.