type alias EmojiMode

Returned by useEmojiTrigger to TextEditor, which keys its focus and key handling on it. An inline picker was opened by a typed :query: focus stays in the textarea and a pick replaces the query. A browse picker was opened from the button: focus goes to its search and a pick lands at the caret.

Definition

"closed" | "inline" | "browse"

Usage

import { type EmojiMode } from "src/hooks/editor/useEmojiTrigger.ts";