# Emoji Emoji nodes with a shortcode suggestion and a toolbar picker. ## Installation ```bash npx shadcn@latest add litingyes/blocove/rich-text-editor-emoji ``` > Typography requires [shadcn/typeset](https://ui.shadcn.com/docs/typeset). Copy `typeset.css` next to your main stylesheet, import it after Tailwind and add the `.typeset-docs` preset. The emoji data set ships with the package. Pass `emojis` to narrow the picker and the shortcode suggestion to the set your project supports. ## API Reference ### EditorEmoji Registers the emoji node and the shortcode suggestion. It accepts the emoji data set, so a project can ship a smaller list than the default. | Prop | Type | Default | | --- | --- | --- | | `emojis` | `EmojiItem[]` | `Bundled emoji set` | | `char` | `string` | `":"` | | `enableEmoticons` | `boolean` | `false` | | `forceFallbackImages` | `boolean` | `false` | | `ariaLabel` | `string` | `"Emoji"` | | `HTMLAttributes` | `Record` | `{}` | ### EditorEmojiToolbar Toolbar picker that inserts an emoji node at the caret. | Prop | Type | Default | | --- | --- | --- | | `className` | `string` | - | ## Registry dependencies - `litingyes/blocove/rich-text-editor` - `litingyes/blocove/rich-text-editor-extension` - `litingyes/blocove/rich-text-editor-suggestion` - `popover` Namespace: `npx shadcn@latest add @blocove/rich-text-editor-emoji`