Badge

Display an indicator that requires attention.

General

Show number or text.

Preview
See code
Default

Type

Express state in different colors.

Preview
See code
Default
Primary
Secondary
Success
Warning
Error
Info

Custom color

For more colors, please refer to the color section.

Preview
See code
Success Light
Alert
Purple
Violet

Anchor

Fix the Badge in the designated position.

Preview
See code
Avatar10
Avatar10
99+

APIs

Badge.Props

AttributeDescriptionTypeAccepted valuesDefault
typebadge typeBadgeTypesBadgeTypesdefault
dotshow dot and ignore contentboolean-false
...native propsHTMLAttributes'alt', 'id', 'className', ...-

Badge.Anchor.Props

AttributeDescriptionTypeAccepted valuesDefault
placementfixe position of BadgeAnchorPlacementAnchorPlacementtopRight
...native propsHTMLAttributes'alt', 'id', 'className', ...-

BadgeTypes

type BadgeTypes =
  | 'default'
  | 'primary'
  | 'secondary'
  | 'success'
  | 'warning'
  | 'error'
  | 'info'

AnchorPlacement

type AnchorPlacement = 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight'
Edit this page on GitHub

Previous

Avatar

Next

Breadcrumbs

MADE & DESIGNED WITHBY BRUNO ANDRADE
docs background gradient blue
docs background gradient violet