Skip to content

InlineEdit

Stable

A labelled value that reads as plain text and turns into an input in place when you press Edit.

Also known as editable text, click to edit, in place edit

Install with npm install @tattva/ui (setup), or copy the code from the kit in Downloads.

A three-row fact check

Amount
₹3,499

Seller
Flipkart

Date
7 Oct 2026

Change one value and press Done. The Edited tag appears next to its label. The rows stack in a Stack, with a small gap, and each row draws its own divider.

When to use it

Let people confirm facts that were read or worked out for them, and fix only the ones that are wrong, without a form full of empty boxes.

Made of: Label · Edited tag · Value · Edit button · Input with Done and Cancel · Error with icon

Use it for

  • A short list of facts to check before a next step, such as an amount, a seller and a date.
  • A value that is usually right and only sometimes needs changing.
  • A value shown in a special way, such as money, that turns into plain text when edited.

Not for

  • Collecting new information from an empty form: use Field.
  • A number that is stepped up and down: use NumberField.
  • A choice between a few options: use SegmentedControl.
  • Choosing from a fixed list: use Select.

Do and avoid

Seller
Flipkart

Amount
3499

Do. Short values read as text and open for a quick fix.
Notes
The parcel arrived late and the box was open. Two items were missing, and the invoice listed the wrong address for delivery.

Avoid. Long text in a one-line edit is cramped and hard to fix.

Do

  • Show the value as plain text first. Checking is easier than typing.
  • Keep a visible Edit button on every row.
  • Let the Edited tag show what was fixed.
  • Keep each value short, as a single line.

Avoid

  • Do not show every value as an empty input box.
  • Do not make the whole row the only thing you can press.
  • Do not use the lime AI colour for the Edited tag. It is neutral on purpose.
  • Do not use it for long text. Use a full form for that.

On a phone

  • The edit button keeps its size and has a 44px tap area on a touch screen, and the value wraps on the left of it.
  • Editing swaps the value for a text box with Done and Cancel in one row, and the text box is 16px so the page does not zoom.
  • Set inputMode so a phone shows the right keyboard, such as numbers.

Build your next AI screen with Tattva.

Free and open, with the code. Start in one line.

Get started