Skip to main content

Label

Style#

Use any of the available label style types to quickly create a styled label. Just modify the lblStyle prop.

DefaultPrimarySuccessDangerWarningSimple
<>
<Label lblStyle="default">Default</Label>,
<Label lblStyle="primary">Primary</Label>,
<Label lblStyle="success">Success</Label>,
<Label lblStyle="danger">Danger</Label>,
<Label lblStyle="warning">Warning</Label>,
<Label lblStyle="simple">Simple</Label>
</>

Color#

Wants your own color? Just give color to lblColor prop.

red
<>
<Label lblColor="red">red</Label>
</>

Children#

Want to declare your value inside the tag? Use children prop.

Label
<>
<Label children="Label"></Label>
</>

API#

import Label from "erxes-ui/lib/components/Label";
NameTypeDefaultDescription
lblStyledefault | primary | success | danger | warning | simpledefaultlabel style
lblColorstringyour own color
childrenstringdeclare value inside tag
Last updated on by zulaann