Browse components
Reaction Bar
A reaction button whose emoji tray springs open on hover or click. The emoji under the pointer lifts and names itself, and the one you pick pops onto the button. Arrow keys and Escape work.
Installation
npx shadcn@latest add @glint-ui/reaction-barFirst time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/reaction-bar.json
Usage
import { ReactionBar } from "@/components/ui/reaction-bar";
<ReactionBar value={reaction} onChange={setReaction} />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| label | string | "React" | Button text while nothing is picked. |
| hover | boolean | true | Open the tray on hover as well as on click. |
| reactions | ReactNode | — | Array of { emoji, label }. |
| value | ReactNode | — | Controlled selection (label or null), pair with onChange. |
| className | string | — | Extra classes for the root element. |