Badge

Badges are used to indicate the status of an item for quick recognition.

TypeResource
DesignFigma
WebWeb Storybook
CodeGitlab
BADGE

Usage

import { Badge } from 'bio-bind-ui';
<Badge
  icon=''
  id='badge'
  label='BADGE'
  mode='light'
  radius='md'
  size='small'
  style={{}}
  type='solid'
  variant='information'
/>

Examples

Badge Variant

Set the variant prop to information , success, warning, danger, or neutral for different color.

BADGE INFORMATION
BADGE SUCCESS
BADGE WARNING
BADGE DANGER
BADGE NEUTRAL

Badge Type

Set the type prop to subtle, solid, or outline for different styles.

BADGE SOLID
BADGE SUBTLE
BADGE OUTLINE

Badge Size

Set the size prop to small or large.

BADGE SMALL
BADGE LARGE

Mode (optional)

Use mode to use dark or light

BADGE LIGHT MODE
BADGE DARK MODE

Props

PropsRequiredDefaultTypedescription
labeltrue-stringThe label text for the badge.
stylefalse-CSSPropertiesCustom styles for the badge component.
modefalselightlight darkThe theme mode of the badge (light or dark).
idfalse-stringA unique identifier for the badge.
variantfalseinformationinformation success warning danger neutralThe visual color variant of the badge.
typefalsesolidsolid subtle outlineThe visual style variant of the badge.
sizefalsesmallsmall largeThe size of Badge.
radiusfalsemdnone xs sm md lg fullCorner radius of the Badge
iconfalse-ReactNodeIf added, the badge will show an icon before the badge’s label
BIND © Biofarma Innovate Next-level Design .