This component extends the native label tag props. This means this component can receive the native html label tag attributes, for example, the htmlFor attribute (which is why it's not included in the table). See for reference: label tag props.
htmlFor
children
string
✅
className
❌
info
infoIcon
availableTelicon
isRequired
boolean
This children prop can receive a string as children. The element passed here will be rendered.
A string that renders a tooltip that when hovered renders the passed string.
This is an icon that is rendered next to the label, that acts as a tooltip and when hovered displays the info message.
Adds an * as a required indicator.
Live Code
Code Sandbox
Last updated 7 months ago