mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-08 16:26:29 +02:00
feat: add useComposing hook (#5695)
This commit is contained in:
@@ -8,6 +8,10 @@
|
||||
|
||||
React hooks for Slate editors
|
||||
|
||||
#### `useComposing(): boolean`
|
||||
|
||||
Get the current `composing` state of the editor. It deals with `compositionstart`, `compositionupdate`, `compositionend` events.
|
||||
|
||||
#### `useFocused(): boolean`
|
||||
|
||||
Get the current `focused` state of the editor.
|
||||
|
Reference in New Issue
Block a user