This component is used to indicate to the user what information they should add to an input in a Form. The description field should provide a description for the user, as well as any sort of constraints.
Props
Name
Required
Nullable
Type
value
string
description
string
error
boolean
textStyle
{}
Examples
Default
Label Value
This should tell the user what valid inputs are, whether it's required or optional, etc.
() => ( <Label value="Label Value" description="This should tell the user what valid inputs are, whether it's required or optional, etc." > <TextInput /> </Label> )
Error State
Label Value
This is a description that was not met by the user.
() => ( <Label value="Label Value" description="This is a description that was not met by the user." error={true} > <TextInput /> </Label> )