zalify-ui

Field

A wrapper component for form inputs with labels and error messages.

React

Usage

Examples

Invalid

Pass the invalid prop to Field.Root and use the Field.ErrorText to indicate that the field is invalid.

This is an error text

React

HelperText

Use the Field.HelperText to add helper text to the field.

This is a helper text

React

Disabled

Use the disabled prop to disable the field.

This is a helper text

React

Required

Pass the required prop to Field.Root and use the Field.RequiredIndicator to indicate that the field is required.

React

Closed Component

Here's how to setup the field for a closed component composition.

Props

Root

RequiredIndicator

Textarea