React
Usage
Examples
Variants
Use the variant prop to change the visual style of the input.
React
Sizes
Use the size prop to change the size of the input.
React
Field
Compose the input with the Field component to add a label, helper text, and error message.
React
Required
Pass the required prop to Field.Root and use the Field.RequiredIndicator to indicate that the input is required.
React
Invalid
Pass the invalid prop to the Field.Root and use the Field.ErrorText to indicate that the input is invalid.
React
Element
Use the startElement and endElement on the InputGroup component to add an element to the start and end of the input.
React
Addon
Use the InputAddon and Group components to add an addon to the input.
React
Button
Use the Group component to attach a button to the input.
React
Ref
Here's how to access the underlying element reference