Park UI

Field

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

Installation

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

HelperText

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

This is a helper text

Disabled

Use the disabled prop to disable the field.

This is a helper text

Required

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

Closed Component

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

Props

Root

RequiredIndicator

Textarea