ToggleBadge

Use the ToggleBadge component to render a primitive badge.

<ToggleBadge selected>
  Selected
</ToggleBadge>
<ToggleBadge>
  Unselected
</ToggleBadge>

Props

PropTypeDescription
selectedbooleanGives different background color
unSelectedBgstringBackground color for unselected toggle, transparent by default
colorstringText color
bgstringBackground color of the toggle badge
fontSizenumber or arrayText font size