Badge API

API reference docs for theBadgecomponent. For examples and details on the usage of this component, visit the component demo page.

Props

PropTypeDescriptionDefault
childrenReact.ReactNodeThe content of the component_
variant?neutralSecondary | neutralPrimary | criticalSecondary | criticalPrimary | positiveSecondary | positivePrimary | cautionSecondary | cautionPrimaryNew variant system replacing tone-based stylingpositiveSecondary
isRounded?booleanControls the border radius of the badge.false
iconStart?(props: IconProps) => React.ReactNodeThe icon to be displayed at the start of the component. It will be rendered at 16px._
size?standard | smallThe size of the componentstandard
tone?positive | neutral | caution | criticalSets the color of the componentpositive