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_
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