Use the following composition to build Rename:
Rename.Root is also exported as Rename. For inline editing without a toolbar, use Rename.Root (or Rename) alone.
When in content editable mode the user can click on the text to start editing it.
The Rename component can also be a textarea by setting the inputTag prop to 'textarea'.
You can put the Rename component into edit mode by using the Edit component or by setting the mode prop to 'edit'.
Inline rename component that toggles between a text view and an input for editing.
Context provider enabling external Edit/Cancel/Save buttons to control the current Rename input.
Button that switches the current Rename input into edit mode.
Button that cancels editing and returns to view mode.