FormLabel

A field label built on Typography, rendered as a <label>. Reads the control id and required flag from FormControl context so association and the required indicator wire automatically.

Architecture: FormLabel renders Typography as="label". htmlFor resolves to the explicit prop, else the FormControl id. The required indicator ( *) is appended as text (so it is part of the accessible name) when required is set, falling back to the FormControl required value. Every Typography prop passes through, so callers restyle freely while keeping the wiring.

Examples

Default

<FormLabel>Email</FormLabel>

Required

<FormLabel required>Email</FormLabel>

From Context

<FormControl id="email" required>
  <FormLabel>Email</FormLabel>
</FormControl>

FormLabel API reference