Skip to content

Commit

Permalink
docs: add context to useComposing hook (#5715)
Browse files Browse the repository at this point in the history
* docs: add context to useComposing hook

* fix: run prettier
  • Loading branch information
work-in-progress-danny authored Nov 1, 2024
1 parent 9a21251 commit f18383b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/libraries/slate-react/hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ React hooks for Slate editors

Get the current `composing` state of the editor. It deals with `compositionstart`, `compositionupdate`, `compositionend` events.

Composition events are triggered by typing (composing) with a language that uses a composition character (e.g. Chinese, Japanese, Korean, etc.) [example](https://en.wikipedia.org/wiki/Input_method#/media/File:Typing_%EC%9E%88%EC%8A%B5%EB%8B%88%EB%8B%A4_in_Dubeolsik_keyboard_layout.gif).

#### `useFocused(): boolean`

Get the current `focused` state of the editor.
Expand Down

0 comments on commit f18383b

Please sign in to comment.