ControlLabel
A generic and easy to use label that encompasses common behaviour and style across all apps. It should be used in every control that uses a label, or as a base to create control label variants.
Properties
className: aclassNamestringto append to the default classNames, it is one of the two ways you can style thelabel.style: astyleobjectpassed directly to the underlyinglabel, it is the other way you can style thelabel.text: The label text as astring.
PropTypes
{
style: object,
text: string,
className: string,
}
Examples
You can find examples below of usage in the components :
BaseTextInput:ControlLabelis used for a text input. The label props are directly requested by the parent component as alabelPropsprop.Select:ControlLabelis used for a select control. The label props are directly requested by the parent component as alabelPropsprop.