Skip to main content

InputLabel

Component representing a caption for an item in a user interface — e.g., an input field. Uses the <Text> component for typography styling.

Examples

Input Label

View standalone

Code
<InputLabel>
Lorem ipsum
</InputLabel>

Custom XS Size Input Label

View standalone

Code
<InputLabel size="xs">
Lorem ipsum
</InputLabel>

Mandatory Input Label

View standalone

Code
<InputLabel requiredIndicator>
Lorem ipsum
</InputLabel>

Props

size

TextSize

Default: "md"

requiredIndicator

boolean

Default: false