- Implementation
- FieldLabel Props
Common Examples
TheFieldLabel component is typically used internally by form components, but can also be used directly when building custom form fields.Required Fields
Add a visual required indicator (red asterisk) and screen reader announcement.With More Info Tooltip
Add additional context with a help tooltip.Polymorphic Element
TheFieldLabel component can render as different HTML elements using the el prop. This is typically used to render a FieldLabel as a legend element within a fieldset element.Controlled Tooltip State
Control the tooltip’s open state programmatically.Markdown in labels
Thechildren prop supports limited inline Markdown: bold (**text**), italic (*text*), bold and italic (***text***), highlight (==text==), and code (`text`). This markdown is stripped from the accessible text so screen readers receive a plain string.React Accessibility
- Uses semantic HTML (
<label>by default) - Required fields include both a visual asterisk and “Required” text for screen readers
- The
moreInfocontent is available to screen readers viaSrOnly - Properly associates with form controls via
htmlFor