Reaction Bar
Audio pulse reaction shard bar for track releases, album liner reviews, and live broadcast interactions.
Interactive Reaction Bar
Music feedback shard bar featuring clean solid active highlights by default, and an optional pulse prop.
reaction-bar-playground.tsx
Size
Quick Import
Example.tsxtsx
1import { ReactionBar } from "@rekodo/react";2import { Heart, Waves, Zap } from "lucide-react";3
4const reactions = [5 { id: "core", label: "LIKE", icon: <Heart className="h-3.5 w-3.5" />, count: 142, tone: "rose" },6 { id: "flux", label: "FLUX", icon: <Waves className="h-3.5 w-3.5" />, count: 89, tone: "violet" },7 { id: "spark", label: "SPARK", icon: <Zap className="h-3.5 w-3.5" />, count: 64, tone: "emerald" },8];9
10export function Example() {11 return (12 <ReactionBar13 reactions={reactions}14 activeIds={["core"]}15 onToggle={(id) => console.log("Toggled", id)}16 />17 );18}API Reference
Props accepted by this component.
| Prop | Type | Default | Description |
|---|---|---|---|
| reactions | ReactionItem[] | — | Array of { id, label, icon?, count?, tone? } reaction items. |
| activeIds | string[] | [] | Array of active/selected reaction IDs. |
| onToggle | (reactionId: string) => void | undefined | Callback fired when a reaction is clicked. |
| pulse | boolean | false | Enables an optional breathing pulse on active reaction shards (disabled by default to prevent visual fatigue). |
| size | "sm" | "default" | "default" | Padding and typography scale. |