Skip to content

Commit

Permalink
feat: add useComposing hook
Browse files Browse the repository at this point in the history
  • Loading branch information
yf-yang committed Aug 13, 2024
1 parent 5838e36 commit 4412925
Show file tree
Hide file tree
Showing 4 changed files with 718 additions and 670 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 4412925

Please sign in to comment.