Inline Editable
inputsClick-to-edit text field that toggles between display and input modes.
Preview
No preview available
Check the code examples below.
Installation
npm install @launchapp/design-systemImport
import { InlineEditable } from "@launchapp/design-system";Examples
Inline edit
const [name, setName] = React.useState("My Project");return ( <InlineEditable value={name} onSave={setName} placeholder="Enter project name" />);Props
| Prop | Type | Default | Description |
|---|---|---|---|
value* | string | — | Current text value. |
onSave | (value: string) => void | — | Called when edits are saved. |
placeholder | string | — | Placeholder shown in edit mode. |