Label

Style

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

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

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

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

API

import Label from "erxes-ui/lib/components/Label";
  • required prop
NAMETYPEDEFAULTDESCRIPTION
lblStyledefault, primary, success, danger, warning ,simpledefaultSet styles of label
lblColorstringGives custom color
children*React.ReactNodestring
classNamestringDefines className
shakebooleanActivate shake animation
ignoreTransbooleanIgnores translate

Was this page helpful?