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