The emoji data set ships with the package. Pass `emojis` to narrow the picker and the shortcode suggestion to the set your project supports.
Preview
Installation
Add the item with the shadcn CLI, or copy the source manually.
pnpm dlx shadcn@latest add litingyes/blocove/rich-text-editor-emojiRequires a shadcn/ui project set up with Base UI primitives. Blocove is developed against the b0 preset, but it installs no base config or theme tokens: your own preset, fonts and colors stay in place.
Or install from the namespace after adding the registry: npx shadcn@latest add @blocove/rich-text-editor-emoji
typeset.css next to your stylesheet, import it after Tailwind and add the .typeset-docs preset. See the Rich text editor setup.API Reference
Props accepted by the exported components.
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<string, any> | {} |
EditorEmojiToolbar
Toolbar picker that inserts an emoji node at the caret.
| Prop | Type | Default |
|---|---|---|
className | string | - |