CleenUI · Data Display · EditableCard

EditableCard

In-place-editable card — click to edit, blur or commit to save.

storybook.cleenui.com · data-display-editablecard--default
Open in new window

About EditableCard

EditableCard renders content in display mode by default. Click on it (or the explicit edit-button slot) and the same area becomes editable. Blur or hit the commit button to save; ESC reverts to display mode.

The component tracks dirty state and exposes events for save, cancel, and discard. Form-field validation runs on save attempts to prevent invalid commits.

When to use it

  • Inline-editable settings and preferences.
  • Editable cell groups in detail views.
  • Quick-edit blocks in admin tooling.
  • Bio and profile field editing.

Common props

Prop
Type
Description
value
any
Current value (controlled).
renderDisplay
(value) => ReactNode
Display-mode renderer.
renderEdit
(value, onChange) => ReactNode
Edit-mode renderer.
onSave
(value) => Promise<void>
Async save handler.
validate
(value) => string | undefined
Validation function returning an error message.
⚡ Already in an AI editor?

Set up CleenUI in your tool.

Skip the manual import — ask your AI agent to build with this component. The Builder skill knows its props, variants, and idioms.