BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/rare-ui/emoji-reaction

Emoji Reaction

rare-ui/emoji-reaction
FreeComponent

A tapback-style reaction button that opens a bar of Apple emoji and sends copies of your pick floating up out of it.

Install it

npx shadcn@latest add https://rareui.com/r/emoji-reaction.json

Source

components/ui/emoji-reaction.tsxrareui.com/r/emoji-reaction.json · first 6 KB
1"use client";
2
3import { memo, useCallback, useEffect, useRef, useState } from "react";
4import type { ComponentProps, KeyboardEvent } from "react";
5import { Slot } from "@radix-ui/react-slot";
6import { AnimatePresence, motion, useReducedMotion } from "motion/react";
7import { X } from "lucide-react";
8import { Emoji, EmojiProvider, type EmojiData } from "react-apple-emojis";
9import { cn } from "@/lib/utils";
10
11// only the default set, the full emoji map ships 380kb of json
12const DEFAULT_EMOJI_DATA: EmojiData = {
13 baseUrl: "https://em-content.zobj.net/source/apple/419/",
14 emojis: {
15 "smiling-face-with-hearts": "smiling-face-with-hearts_1f970.png",
16 "star-struck": "star-struck_1f929.png",
17 "confused-face": "confused-face_1f615.png",
18 "pleading-face": "pleading-face_1f97a.png",
19 "grinning-face-with-smiling-eyes":
20 "grinning-face-with-smiling-eyes_1f604.png",
21 },
22};
23
24const DEFAULT_EMOJIS = Object.keys(DEFAULT_EMOJI_DATA.emojis);
25
26const SURFACE = "bg-[#F4F4F9] dark:bg-[#262626]";
27
28const BURST_COUNT = 5;
29const HOLD_INTERVAL = 550;
30const MAX_PARTICLES = 60;
31const RISE = 450;
32const LAUNCH_SPREAD = 6;
33const CLIMB_SPREAD = 78;
34// soft ease out, roughly 65% of the distance by the halfway point so it keeps moving
35const EASE = [0.4, 0.3, 0.5, 1] as const;
36const SWAY = [0, 0.3, 0.65, 1];
37
38const GAP = 16;
39const EDGE = 8;
40
41const SIZES = {
42 sm: {
43 trigger: "size-8",
44 icon: "size-4",
45 emoji: 26,
46 pill: "gap-0.5 p-1",
47 burst: 26,
48 },
49 md: {
50 trigger: "size-10",
51 icon: "size-5",
52 emoji: 34,
53 pill: "gap-1 p-1.5",
54 burst: 34,
55 },
56 lg: {
57 trigger: "size-12",
58 icon: "size-6",
59 emoji: 42,
60 pill: "gap-1.5 p-2",
61 burst: 42,
62 },
63} as const;
64
65type Align = "left" | "center" | "right";
66
67type Placement = { side: "top" | "bottom"; shift: number; tailX: number };
68
69type Particle = {
70 id: number;
71 name: string;
72 originX: number;
73 originY: number;
74 x: number;
75 drift: number;
76 tilt: number;
77 travel: number;
78 scale: number;
79 blurRatio: number;
80 fadeAt: number;
81 duration: number;
82 delay: number;
83};
84
85function SmileIcon({ className }: { className?: string }) {
86 return (
87 <svg viewBox="0 0 24 24" fill="none" aria-hidden className={className}>
88 <path
89 d="M21 12a9 9 0 1 1-9-9"
90 stroke="currentColor"
91 strokeWidth="1.7"
92 strokeLinecap="round"
93 />
94 <circle cx="8.9" cy="10" r="1.35" fill="currentColor" />
95 <circle cx="15.1" cy="10" r="1.35" fill="currentColor" />
96// … truncated

What it pulls in

npm packages

  • motion
  • react-apple-emojis
  • lucide-react
  • @radix-ui/react-slot

Other registry items

  • utils

Files it writes

  • components/ui/emoji-reaction.tsx

Facts

Registry
rare-ui
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
In the index
at or before 2026-08-07
Last confirmed
today

Go to the source

rareui.com swamimalode07/rare-ui on GitHub Raw registry item This item as JSON

More from rare-ui

All 13 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Bounce Sidebarbounce-sidebarrare-uiComponentsFree1 dep
Code Blockcode-blockrare-uiComponentsFree3 deps
Duration Pickerduration-pickerrare-uiComponentsFree5 deps
Family Drawerfamily-drawerrare-uiComponentsFree2 deps
Fluid Orbfluid-orbrare-uiComponentsFreeno deps
Folder Componentfolder-componentrare-uiComponentsFree1 dep
GitHub Activitygithub-activityrare-uiComponentsFree1 dep
Gravity Lettersgravity-lettersrare-uiComponentsFreeno deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex