Foundation

Main View


Components

Charts

Dialogs

Framer Animations

Forms

Grids

Typography


Tools


UiBadge


Package: @uireact/badge

Component used to highlight categories or labels in a given context

1. Make sure you install peer dependencies first:

Expand peer dependencies

2. Install package:

npm i -S @uireact/badge

  <>
    <UiSpacing margin={{ block: 'three' }}>
      <UiBadge size="xlarge">✈️ Primary</UiBadge>
    </UiSpacing>
    <UiSpacing margin={{ block: 'three' }}>
      <UiBadge category="secondary" size="large">
        <UiIcon icon="BadgeCheck" category="secondary" /> Secondary with icon
      </UiBadge>
    </UiSpacing>
    <UiSpacing margin={{ block: 'three' }}>
      <UiBadge category="tertiary" size="regular">
        🚀 Tertiary
      </UiBadge>
    </UiSpacing>
    <UiSpacing margin={{ block: 'three' }}>
      <UiBadge category="positive">✅ Positive</UiBadge>
    </UiSpacing>
    <UiSpacing margin={{ block: 'three' }}>
      <UiBadge category="warning" size="xsmall">
        🚨 Warning
      </UiBadge>
    </UiSpacing>
  </>

Props