import { Badge } from '@zeal-ui/core';
Primary
Secondary
Accent
Error
Warning
Success
Editable Code
<Container type="col" width="100%"><Badge color="primary">Primary</Badge><Badge color="secondary">Secondary</Badge><Badge color="accent">Accent</Badge><Badge color="error">Error</Badge><Badge color="warning">Warning</Badge><Badge color="success">Success</Badge></Container>;
Badge with Icon
Editable Code
const BadgeStyled = styled(Container)`.badge{display: flex;flex-direction: row;justify-content: center;align-items: center;padding: 0rem;}.icon{border-radius: 50%;margin-right: 0.5rem;}`;render(<BadgeStyled><Badge width="10rem" height="2rem" color="secondary" className="badge"><Image src="/phone.svg" alt="phone" width="1.5rem" height="1.5rem" className="icon" /><Text>Badge with Icon</Text></Badge></BadgeStyled>,);
width
Description
It is used to set the width of the badge.
Values
String with valid width.
height
Description
It is used to set the height of the badge.
Values
String with valid height.
color
Description
It is used to set the color of the badge.
Values
primary | secondary | accent | error | warning | success
To learn about customizing the components check this section of the docs.