Skip to content

Commit 6cb38e3

Browse files
authored
feat: add useComposing hook (#5695)
1 parent e5fed79 commit 6cb38e3

4 files changed

Lines changed: 731 additions & 690 deletions

File tree

.changeset/ten-queens-walk.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'slate-react': minor
3+
---
4+
5+
feat: Add useComposing hook"

docs/libraries/slate-react/hooks.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88

99
React hooks for Slate editors
1010

11+
#### `useComposing(): boolean`
12+
13+
Get the current `composing` state of the editor. It deals with `compositionstart`, `compositionupdate`, `compositionend` events.
14+
1115
#### `useFocused(): boolean`
1216

1317
Get the current `focused` state of the editor.

0 commit comments

Comments
 (0)