Inline Editable

inputs

Click-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-system
Import
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

PropTypeDefaultDescription
value*
stringCurrent text value.
onSave
(value: string) => voidCalled when edits are saved.
placeholder
stringPlaceholder shown in edit mode.