Skip to content

    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.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/reaction-bar

    First 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

    PropTypeDefaultDescription
    labelstring"React"Button text while nothing is picked.
    hoverbooleantrueOpen the tray on hover as well as on click.
    reactionsReactNode—Array of { emoji, label }.
    valueReactNode—Controlled selection (label or null), pair with onChange.
    classNamestring—Extra classes for the root element.