Skip to content

Badge

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

Badge

Installation

npm i @huin-core/react-badge

API Reference

Badge

PropTypeDescription
asChildbooleanWhen set to true, renders the component as its child element, inheriting the child's styles and behavior.
variant"default" | "destructive" | "outline"Defines a different style or appearance of the component, allowing for customization of its look and feel based on specific use cases.