Theme

npm_versionnpm Paragon package page

Badges are composed of text and an accompanying indicator color, and are typically used to add meaning, status, or context when paired with another component.

  • Use badges paired with another component to convey status, or provide additional details
  • Don’t use badges for freestanding text on a page

This is a pass through component from React-Bootstrap.

See React-Bootstrap for additional documentation.

Basic Usage

Any Paragon component or export may be added to the code example.

Theme Variables#

CSS VariableComputed Value










Props API#

Badge Props API
  • as elementType

    Specifies element type for this component

    Default'span'
  • variant enum'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark'

    Visual style of the badge

    Default'primary'
  • pill bool

    Add the pill modifier to make badges more rounded with some additional horizontal padding

    Defaultfalse
  • bsPrefix string

    Overrides underlying component base CSS class name

    Default'badge'

Usage Insights#

Badge

Project NameParagon VersionInstance Count
frontend-app-admin-portal22.18.024
frontend-app-authn23.12.21
frontend-app-course-authoring23.5.015
ora_settings23.5.01
proctoring23.5.01
xpert_unit_summary23.5.01
frontend-app-discussions23.4.53
frontend-app-ecommerce20.46.32
frontend-app-enterprise-public-catalog22.17.08
frontend-app-learner-dashboard23.12.22
frontend-app-learner-portal-enterprise22.17.020
frontend-app-learning22.17.02
frontend-app-ora-grading23.4.52
frontend-app-profile23.12.21
frontend-app-payment22.9.01
frontend-app-support-tools23.4.25
frontend-component-header-edx23.6.12
catalog-search22.20.24