Input

Input is a component used to obtain text input from the user.

Usage

import { Input, InputGroup } from "@yamada-ui/react"
<Input />
<InputGroup.Root>
  <InputGroup.Addon />
  <Input />
  <InputGroup.Element />
</InputGroup.Root>

Change Variant

Change Size

Change Color Scheme

Disable

To disable the input, set disabled to true.

Read-Only

To read-only, set readOnly to true.

Invalid

To make invalid, set invalid to true.

Add Addons

To add addons, wrap the Input in InputGroup and use InputGroup.Addon.

https://
.com
https://
.com
https://
.com

Add Elements

To add elements, wrap the Input in InputGroup and use InputGroup.Element.

Change Type

To change the type, set type to the type.

Change Border Color

To change the border color, set focusBorderColor or errorBorderColor to the color.

Change Placeholder Color

To change the placeholder color, set _placeholder to the value.

Floating Label

Control

Props

Accessibility

Currently, this section is being updated due to the migration of v2.