Label
A label is a primitive component matching Hopper's typography type scale.
Usage
Color
The label component has a default color, but it can be easily overridden.
Required
The label component can be marked as required. You can customize the necessity indicator by using an asterisk.
Optional
The label component can show the optional necessity indicator as a label.
Props
isRequired?
Whether the label shows a required state.
necessityIndicator?
Whether the required state should be shown as an asterisk or a label, which would display (Optional) on all non required field labels.
style?
elementType?
className?