Editable

Editable is a component used to obtain inline editable text input.

なんとかなれーッ!

Usage

import { Editable } from "@yamada-ui/react"
<Editable.Root>
  <Editable.Preview />
  <Editable.Input />
  <Editable.Textarea />
  <Editable.Control>
    <Editable.EditTrigger />
    <Editable.SubmitTrigger />
    <Editable.CancelTrigger />
  </Editable.Control>
</Editable.Root>

Use Textarea

To enable multiple lines, use Editable.Textarea.

おやつ…って事!? それって最高じゃん!!

Make Edit Mode Default

To make edit mode default, set startWithEditView to true.

Disable Submit on Blur

To prevent submitting changes when focus is lost, set submitOnBlur to false.

なんとかなれーッ!

Disable Text Selection on Focus

To prevent text selection when focused, set selectAllOnFocus to false.

なんとかなれーッ!

Change Border Color

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

Custom focus border color
Custom error border color

Disable

To disable, set disabled to true.

Your email address
Your email address
We'll never share your email.

Read-Only

To read-only, set readOnly to true.

Your email address
Your email address
We'll never share your email.

Invalid

To make the input invalid, set invalid to true.

Your email address
Your email address

Control

なんとかなれーッ!

Control

なんとかなれーッ!

Props

Accessibility

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