Label

A label is a primitive component matching Hopper's typography type scale.

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

Examples

Color

The label component has a default color, but it can be easily overridden.

Required

The label component can be marked as required.