Deviopath › React

Badge Variants

Easy · Props

The Badge component receives text and variant props and renders a <span> with the text.

Its class must be "badge badge-" plus the variant, for example "badge badge-success". If no variant is given, use "default", so the class is "badge badge-default".

Next: Card with Children