Park UI

Input

A form control for entering single-line text input.

Installation

Usage

Examples

Variants

Use the variant prop to change the visual style of the input.

Sizes

Use the size prop to change the size of the input.

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.

Required

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

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.

Element

Use the startElement and endElement on the InputGroup component to add an element to the start and end of the input.

https://
⌘K
$
USD

Addon

Use the InputAddon and Group components to add an addon to the input.

https://
.com
$
USD

Button

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

Ref

Here's how to access the underlying element reference

Props

PropDefaultType
variant'outline'
'outline' | 'surface' | 'subtle' | 'flushed'
size'md'
'2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl'