Components
Badge
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
Light mode
Dark mode
Installation
1
First Step
Include Badge.tsx in your project.
2
Second Step
Update the import paths to match your project setup.
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’.