EmojiReactionPicker

Reactions that swell toward your pointer like a dock, with the name above the nearest. Pressing one releases a small burst; pressing it again clears it. Inputs.

Open playground

About

EmojiReactionPicker is a React component in the Inputs category of smoui. It is typed, ships no stylesheet, follows your theme through CSS variables, and honors prefers-reduced-motion. Import it with import { EmojiReactionPicker } from "@ashutoshswamy/smoui" and set reactions, value, onChange among its 4 props.

Install

Terminal
npm i @ashutoshswamy/smoui

Usage

TSX
import { EmojiReactionPicker } from "@ashutoshswamy/smoui";

<EmojiReactionPicker onChange={setReaction} />

Props 4

reactions

Choices; defaults to five common reactions.

{ emoji: string; label: string }[]
value / defaultValue

Controlled or initial emoji.

stringnull
onChange

Selection or clear.

(emoji: string | null) => void
label

Accessible group name.

stringdefault "Reaction"