Tertiary label
Open in Playroom

Alternatives

  • FieldMessage For displaying messages below a custom field.

Accessibility

The htmlFor prop is mandatory, which accepts the ID of the field being labelled. This ensures that screen readers are able to associate the label with its associated field.

Label

Sets the primary label of field.
Open in Playroom

Secondary label

Provide additional context, typically used to indicate optionality of a field.
Open in Playroom

Tertiary label

Provide further context, typically used for providing assistance with a field.
Open in Playroom

Additional description

Additional context can be provided with a description. This will display below the field label.
Extra information about the field
Open in Playroom

Disabled field

Setting the disabled prop to true dims the field label.
Open in Playroom

Data attributes

Braid components are very explicit about the properties they accept, which makes providing arbitrary data attributes not possible. Instead, a data prop can be provided as a single collection of data attributes.
<FieldLabel
  data={{ testid: 'field-label-1' }}
  // => data-testid="field-label-1"
/>