Skip to main content

Overview

Badge is a React Native component for displaying brief labels or tags with optional variants. If you want to control style using Tailwind CSS classes, use the className and labelClasses props.

Light mode

Dark mode

Installation

Properties

  • label: string (required) - The text displayed inside the badge.
  • labelClasses?: string (optional) - The classes for the label’s text.
  • className?: string (optional) - The classes for the parent container.
  • variant?: Variant (optional) - The variant of the badge. Can be one of ‘default’, ‘secondary’, ‘destructive’, or ‘success’.

Usage

Basic usage with variant

Basic usage with custom classes