Field Label
Overview
Labels are used as a helper component for many input types, effective form labeling helps users understand what information to enter.
When to use
- Inputs should ALWAYS be accompanied by a Label describing what the user is expected to enter into the input field. e.g. ‘Date of Birth’.
- If the input is optional it should always be accompanied by the IsOptional helper.
- Do not use placeholder text in lieu of a Label.
When not to use
- If the input is required do not display the IsOptional helper.
Interactive demo
The demo below allows you to preview the component. You can play with its props, variations, configuration options and dive into its events and even see them trigger in the event log tab.
MedKit Field Label
Label
string
Screen Reader Label
string
Label Hidden
boolean
false
For
string
Required
Required
boolean
false
Figma Library
You can find the component in our MedKit Figma library.