Components/FormLabel

FormLabel

Accessible label with required, optional, and disabled states.

Installation

Examples

Label states

Required asterisk, optional badge, and disabled style.

API Reference

PropTypeDefaultDescription
requiredbooleanfalseShows a required asterisk.
optionalbooleanfalseShows an optional badge.
disabledbooleanfalseReduces opacity.
htmlForstringLinks the label to an input by ID.