Skip to main content

Pathfinder 1.0 Just launched! Get it now with special launch pricing Learn more

Badge

The Badge component is a versatile element for displaying labels, status indicators, or metadata. It comes with various styles and sizes to suit different use cases.

Basic Usage

The Badge component requires one prop:

  • text: The content to display inside the badge

Variants

The Badge component comes with five different variants to convey different types of information:

Sizes

The Badge component supports three different sizes through the optional size prop:

Props

PropTypeDefaultRequiredDescription
textstring-YesThe text content to display inside the badge
variant"note" | "tip" | "caution" | "danger" | "info""note"NoThe style variant to use
size"sm" | "md" | "lg""sm"NoThe size of the badge