Badge

Presents a visual badge or a component with badge styling.

@radix-ui/react-slot

class-variance-authority

Installation


1

Install the following dependencies:

npx shadcn@latest add https://sbthemes.com/r/badge.json

Examples


Variants

Radius


API Reference

This component is based on the <span> element and supports all of its props and adds:

PropTypeDefault
variantdefault, secondary, outline, error, warning, successdefault
radiusdefault, full,nonedefault