---
title: useInlineRename
description: Inline rename state and focus-management helper.
---

# useInlineRename

`useInlineRename(onCommit)` manages editing state, focus, outside-click handling, and keyboard behavior for inline rename flows.

Use it in custom page lists, layer trees, or similar rename-in-place UIs.

## Related APIs

- [PageListRoot](../components/page-list-root)
- [LayerTreeItem](../components/layer-tree-item)
