Skip to content

feat: Badge component #80

@swernerx

Description

@swernerx

Summary

Add a Badge component for inline status labels, version indicators, and metadata tags within documentation content.

Motivation

Badges are used frequently in documentation to indicate status (beta, deprecated, new, experimental), versions, or categories. Mintlify includes a Badge component. This is a small but high-visibility component.

Proposed API

<Badge>New</Badge>
<Badge variant="warning">Beta</Badge>
<Badge variant="danger">Deprecated</Badge>
<Badge variant="info">v2.0+</Badge>

Or as inline Markdown (stretch goal):

This feature is [!badge New] in version 2.0.

Features

  • Multiple variants: default, success, warning, danger, info
  • Inline display (flows with text)
  • Light/dark mode styling
  • Small and unobtrusive design
  • Optional icon support

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions