Code
The badge component usage and API reference.
API
This component extends the native <div>
API. That's why the className
prop is not included in the table.
Props
Data Type
Required
children
string
className
string
color
grey | blue | green | yellow | red | indigo | purple | lime | teal | orange | pink
isCounter
string
Props description
If isCounter
is true
, icons are not going to be displayed on the component.
Example
Live Demo
Last updated