zalify-ui

Input

A form input component for collecting text input from users.

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.

Your email will not be shared with anyone else.

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.

Please enter a valid email address.

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.

https://
EUR

React

Button

Use the Group component to attach a button to the input.

React

Ref

Here's how to access the underlying element reference

Props