Skip to content
GitHub

Input

A field that allows users to enter text

Installation

Usage

Sizes

Use the size prop to change the input height.

Small

Medium

Large

State

Disabled

Use the disabled prop to disable the input.

The field is currently disabled

Invalid

Use the invalid prop to mark the input as invalid.

Please enter a valid email address

Examples

Field

Use <Field />, <FieldLabel /> and <FieldDescription /> to create an input with a label and a description.

Choose a unique username for your account

Field Group

Use <FieldGroup /> to show multiple <Field /> blocks and to build forms.

We'll use this email to contact you

File

Use the type="file" prop to create a file input.

Choose a picture for your profile

Dedicated File Upload component

For more advanced file upload functionality, use the <FileUpload /> component instead.

Inline

Use the orientation="horizontal" prop to create an inline input.

Grid

Required

Use the required prop to mark the input as required.

Use <FieldRequiredIndicator /> to add a required indicator to the label.

This field must be filled out..

Badge

Use <Badge /> in the label to highlight a recommended field.

Input Group

Use <InputGroup /> to create an input group.

Button Group

Use <ButtonGroup /> to create a button group.

API Reference

Input

Text input. Accepts all native input attributes.


For a complete list of props, see the Ark UI documentation.