Skip to content
Look

Shared with the landing page. Theme is the select beside this menu.

EmojiReactionBar

Open .md
Live preview

Loading example…

Row of reaction chips plus an “add reaction” button that opens an emoji picker.

import { EmojiReactionBar } from "@jcsoftdev/ui/forms";

Single-component entry points tree-shake to just this component: @jcsoftdev/ui/forms/emoji-reaction-button.

<EmojiReactionBar emoji="🔥" count={7} reacted={false} />
Prop Type Default Description
reactions * Reaction[]
onReact ((emoji: string, reacted: boolean) => void) Called with the emoji and the new reacted state, from a chip or from the picker.
container HTMLElement | null Portal target for the picker; pass an element to keep a scoped data-style.
addLabel string "Añadir reacción"
disabled boolean
className string
classNames Partial<Record<EmojiReactionBarPart, string>> Per-part classes merged with cn; consumer classes win. className still targets the root and is merged last.

* marks a required prop.

packages/ui/src/forms/emoji-reaction-button/emoji-reaction-button.tsx