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

style?
elementType?
className?