Badge

Displays a component that looks like a badge.

Default

Standard badge display.

DefaultSecondaryDestructiveOutline

Variants

Badges come in different variants to convey meaning.

DefaultSecondaryDestructiveOutline

With Icons

Adding icons to badges for extra context.

Verified Bookmark

With Spinner

Indicate loading or processing states.

Processing Syncing

Link Badges

Using badges as interactive links.

Custom Colors

Theme badges using utility classes.

BlueGreenAmberPurpleRose

Installation & Usage

Installation

Imports

Basic Skeleton

API Reference

Helm API

The helm directive provides styling for the badge.

DirectiveSelectorInputs
HlmBadge[hlmBadge]
  • variant: 'default' | 'secondary' | 'destructive' | 'outline'