Skip to content

Commit

Permalink
feat: add useComposing hook (#5695)
Browse files Browse the repository at this point in the history
  • Loading branch information
yf-yang authored Aug 20, 2024
1 parent e5fed79 commit 6cb38e3
Show file tree
Hide file tree
Showing 4 changed files with 731 additions and 690 deletions.
5 changes: 5 additions & 0 deletions .changeset/ten-queens-walk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'slate-react': minor
---

feat: Add useComposing hook"
4 changes: 4 additions & 0 deletions docs/libraries/slate-react/hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading

0 comments on commit 6cb38e3

Please sign in to comment.