We use cookies to ensure you get the best experience on our website. Read our privacy policy

Skip to main content

Directory

Badge Component

The Badge component creates compact, visually distinct labels perfect for displaying status indicators, counts, or categories. Its minimal footprint and flexible styling make it ideal for adding quick visual cues throughout your interface.

<Badge variant="primary">New Feature</Badge>
<Badge variant="warning" size="sm">Beta</Badge>
<Badge variant="error" styling="minimal">Critical</Badge>

Standard Variants

Default
Primary
Tip
Info
Warning
Error

Minimal Style

Default
Primary
Tip
Info
Warning
Error

Outline Style

Default
Primary
Tip
Info
Warning
Error

Size Options

Small
Medium
Default
Large
Custom Shape
Square Edges
Alert Octagon With Icon
Badge Component Extends <div> HTMLElement
Prop Type Default Description
variant default | primary | tip | info | warning | error default Visual style
size sm | md | default | lg default Badge size
styling default | minimal | outline default Style variant
  • Check Circle

    Consistent Usage

    • Use the same variant for similar types of information
    • Maintain consistent sizing within similar contexts
    • Group related badges together when appropriate
  • Check Circle

    Content Guidelines

    • Keep text concise and clear
    • Use sentence case for badge text
    • Avoid truncating badge content
  • Check Circle

    Visual Hierarchy

    • Use more prominent variants sparingly
    • Consider size in relation to surrounding content
    • Maintain adequate spacing between multiple badges
Status Indicators
Category Labels
Version Tags
Notification Counts
Priority Markers
Feature Flags
Update Indicators

Limited Time Launch Sale

Ready to enhance your UI with beautiful, responsive badges? Get our AstroJS starter template now and access the Badge component along with our complete UI toolkit.

GET 60% OFF!
North Star Themes Logo

Subscribe to our newsletter

Get the latest AstroJS tips and tricks right to your inbox

Email: [email protected]

© 2025 North Star Themes

Web Kit Provided By North Star Themes