{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "reactions",
  "type": "registry:ui",
  "title": "Reactions",
  "description": "The room's pulse while someone talks. Phones tap a reaction (`ReactionBar`) and the shared screen lets it float up (`ReactionStream`); someone who wants to speak raises a hand (`RaiseHand`) and the host calls on people in the order they asked (`HandQueue`).",
  "author": "ofri-peretz <https://github.com/ofri-peretz>",
  "categories": [
    "games",
    "game"
  ],
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "https://ds.interlace.tools/r/interlace-base.json",
    "https://ds.interlace.tools/r/button.json",
    "https://ds.interlace.tools/r/cn.json",
    "https://ds.interlace.tools/r/motion-token.json",
    "https://ds.interlace.tools/r/use-reduced-motion.json"
  ],
  "files": [
    {
      "path": "registry/interlace-ui/games/reactions.tsx",
      "target": "components/ui/games/reactions.tsx",
      "type": "registry:ui",
      "content": "'use client';\n\nimport { Hand, Heart, Laugh, Lightbulb, CircleHelp, Mic, ThumbsUp } from 'lucide-react';\n\n// @interlace/reactions v1.0.0 — Interlace design system.\n// Docs, props and live preview: https://ds.interlace.tools/c/reactions\n// What changed since: https://ds.interlace.tools/c/reactions#history\n// Generated banner — keep it, the upgrade diff reads this version.\n\n/**\n * @interlace/ui — ReactionBar, ReactionStream, RaiseHand and HandQueue\n *\n * The room's pulse while someone talks. Phones tap a reaction\n * (`ReactionBar`) and the shared screen lets it float up\n * (`ReactionStream`); someone who wants to speak raises a hand\n * (`RaiseHand`) and the host calls on people in the order they asked\n * (`HandQueue`).\n *\n * ## Who uses which part\n *\n * | Phase           | Who       | Part             |\n * | --------------- | --------- | ---------------- |\n * | Reacting        | Everyone  | `ReactionBar`    |\n * | Seeing the room | Screen    | `ReactionStream` |\n * | Asking to speak | Everyone  | `RaiseHand`      |\n * | Giving the word | Host      | `HandQueue`      |\n *\n * Budgets and the hand queue are pure, in `reactions-model`: run\n * `allowReaction` and `applyHandEvent` where the room's state lives.\n *\n * ## Anatomy\n *\n *   ReactionBar        (div role=\"group\" — data-slot=\"reaction-bar\": one Button per kind)\n *   ReactionStream     (div — data-slot=\"reaction-stream\": aria-hidden floats + the tally)\n *   RaiseHand          (div — data-slot=\"raise-hand\": a toggle Button and the place in line)\n *   HandQueue          (section — data-slot=\"hand-queue\": who is speaking, the line, Call next)\n *\n * ## Motion\n *\n * A tap pops its button (transform, 250ms). On the shared screen each\n * allowed reaction rises from the bottom edge with a slight drift and fades\n * out (1.6s, transform and opacity, Web Animations), at most `maxFloating`\n * at once. Floats are decoration and hidden from assistive tech; the tally\n * carries the same information. Under reduced motion nothing floats and\n * the tally counts up in place.\n *\n * ## MIN_VIEWPORT — 320\n *\n * | Rule | Concept               | Where in this file                                    |\n * | ---- | --------------------- | ----------------------------------------------------- |\n * | R4   | Extends native el     | `div` / `section` props                               |\n * | R6   | data-slot per part    | reaction-bar / reaction-stream / raise-hand / hand-queue |\n * | R7   | cn + ...rest          | `cn(…, className)` + `{...props}`                     |\n * | R9   | Controlled            | RaiseHand `raised` / `onChange`                       |\n * | R14  | Declares min viewport | `data-min-viewport` + exported const                  |\n * | R26  | A11y                  | labelled buttons; floats hidden, tally readable; place in line announced |\n */\n\nimport * as React from 'react';\n\nimport { cn } from '@/lib/utils';\nimport { motionEase } from '@/lib/motion-token';\nimport { useReducedMotion } from '@/hooks/use-reduced-motion';\nimport { Button } from '@/components/ui/button';\nimport { tallyReactions, type RaisedHand } from '@/components/ui/games/reactions-model';\n\nexport const MIN_VIEWPORT = 320 as const;\n\nexport interface ReactionKind {\n  id: string;\n  /** The button's name and the tally's word. */\n  label: string;\n  icon: React.ReactNode;\n}\n\n/** A neutral starter set; pass your own `kinds` to change it. */\nexport const DEFAULT_REACTIONS: readonly ReactionKind[] = [\n  { id: 'love', label: 'Love it', icon: <Heart /> },\n  { id: 'agree', label: 'Agree', icon: <ThumbsUp /> },\n  { id: 'funny', label: 'Funny', icon: <Laugh /> },\n  { id: 'new', label: 'New to me', icon: <Lightbulb /> },\n  { id: 'confused', label: 'Lost me', icon: <CircleHelp /> },\n];\n\n// --- ReactionBar ------------------------------------------------------------------\n\ntype ReactionBarProps = Omit<React.ComponentProps<'div'>, 'children'> & {\n  kinds?: readonly ReactionKind[];\n  /** Called on every tap, with the kind id. */\n  onReact?: (kind: string) => void;\n  /** Taps are paused (for example while over budget). */\n  disabled?: boolean;\n  /** The group's name. @default 'React' */\n  label?: string;\n};\n\nfunction ReactionBar({\n  kinds = DEFAULT_REACTIONS,\n  onReact,\n  disabled = false,\n  label = 'React',\n  className,\n  ...props\n}: ReactionBarProps) {\n  const reduced = useReducedMotion();\n  const pop = (el: HTMLElement) => {\n    if (reduced || typeof el.animate !== 'function') return;\n    el.animate([{ transform: 'scale(1)' }, { transform: 'scale(1.25)' }, { transform: 'scale(1)' }], {\n      duration: 250,\n      easing: motionEase(el, 'enter'),\n    });\n  };\n  return (\n    <div\n      role=\"group\"\n      aria-label={label}\n      data-slot=\"reaction-bar\"\n      data-min-viewport={String(MIN_VIEWPORT)}\n      className={cn('flex flex-wrap justify-center gap-2', className)}\n      {...props}\n    >\n      {kinds.map((k) => (\n        <Button\n          key={k.id}\n          type=\"button\"\n          variant=\"outline\"\n          size=\"icon-lg\"\n          aria-label={k.label}\n          title={k.label}\n          disabled={disabled}\n          data-kind={k.id}\n          onClick={(e) => {\n            const icon = e.currentTarget.querySelector<HTMLElement>('[data-slot=\"reaction-icon\"]');\n            if (icon) pop(icon);\n            onReact?.(k.id);\n          }}\n          className=\"rounded-full\"\n        >\n          <span data-slot=\"reaction-icon\" aria-hidden className=\"inline-flex [&_svg]:size-5\">\n            {k.icon}\n          </span>\n        </Button>\n      ))}\n    </div>\n  );\n}\nReactionBar.displayName = 'ReactionBar';\n\n// --- ReactionStream ---------------------------------------------------------------\n\ninterface Float {\n  key: string;\n  kind: string;\n  /** 0 to 1 across the width. */\n  x: number;\n}\n\ntype ReactionStreamProps = Omit<React.ComponentProps<'div'>, 'children'> & {\n  kinds?: readonly ReactionKind[];\n  /** Every allowed reaction so far (or a recent window); new ids float up once. */\n  reactions: readonly { id: string; kind: string }[];\n  /**\n   * False while the room has not told this screen its state yet (a late join, a refresh, a\n   * reconnect): what arrives then is remembered, never floated. `useRoomReactions` gives it.\n   * @default true\n   */\n  ready?: boolean;\n  /** The most floating at once; the rest only count. @default 24 */\n  maxFloating?: number;\n  /** Show the per-kind tally. Always on under reduced motion. @default true */\n  showTally?: boolean;\n  locale?: string;\n};\n\n// A low-discrepancy sequence spreads floats evenly without randomness.\nconst GOLDEN = 0.618_033_988_75;\n\nfunction FloatIcon({ float, icon, onDone }: { float: Float; icon: React.ReactNode; onDone: (key: string) => void }) {\n  const ref = React.useRef<HTMLSpanElement>(null);\n  React.useEffect(() => {\n    const el = ref.current;\n    if (!el || typeof el.animate !== 'function') {\n      onDone(float.key);\n      return;\n    }\n    const drift = (float.x - 0.5) * 40;\n    const anim = el.animate(\n      [\n        { transform: 'translate(0, 0) scale(0.6)', opacity: 0 },\n        { transform: `translate(${drift * 0.3}px, -20%) scale(1.1)`, opacity: 1, offset: 0.15 },\n        { transform: `translate(${drift}px, -420%) scale(1)`, opacity: 0 },\n      ],\n      { duration: 1600, easing: motionEase(el, 'enter'), fill: 'forwards' },\n    );\n    let live = true;\n    anim.finished.then(\n      () => live && onDone(float.key),\n      () => undefined,\n    );\n    return () => {\n      live = false;\n      anim.cancel();\n    };\n  }, [float, onDone]);\n  return (\n    <span\n      ref={ref}\n      data-slot=\"reaction-float\"\n      data-kind={float.kind}\n      className=\"text-primary absolute bottom-0 inline-flex opacity-0 [&_svg]:size-8\"\n      style={{ insetInlineStart: `calc(${(float.x * 90 + 5).toFixed(2)}% - 1rem)` }}\n    >\n      {icon}\n    </span>\n  );\n}\n\nfunction ReactionStream({\n  kinds = DEFAULT_REACTIONS,\n  reactions,\n  ready = true,\n  maxFloating = 24,\n  showTally = true,\n  locale,\n  className,\n  ...props\n}: ReactionStreamProps) {\n  const reduced = useReducedMotion();\n  const nf = React.useMemo(() => new Intl.NumberFormat(locale), [locale]);\n  const seen = React.useRef<Set<string>>(new Set());\n  const count = React.useRef(0);\n  const armed = React.useRef(false);\n  const [floats, setFloats] = React.useState<Float[]>([]);\n  const icons = React.useMemo(() => new Map(kinds.map((k) => [k.id, k.icon])), [kinds]);\n\n  React.useEffect(() => {\n    // The first render, and the first one with the room's state in it, only remember what was\n    // already there: no burst on load, a late join, a refresh or a reconnect.\n    if (!armed.current) {\n      for (const r of reactions) seen.current.add(r.id);\n      armed.current = ready;\n      return;\n    }\n    const fresh = reactions.filter((r) => !seen.current.has(r.id) && icons.has(r.kind));\n    for (const r of reactions) seen.current.add(r.id);\n    if (reduced || fresh.length === 0) return;\n    setFloats((prev) => {\n      const room = Math.max(0, maxFloating - prev.length);\n      // The newest win when the screen is full.\n      const added = (room === 0 ? [] : fresh.slice(-room)).map((r) => {\n        count.current += 1;\n        return { key: r.id, kind: r.kind, x: (count.current * GOLDEN) % 1 };\n      });\n      return [...prev, ...added];\n    });\n  }, [reactions, ready, reduced, maxFloating, icons]);\n\n  const done = React.useCallback((key: string) => setFloats((prev) => prev.filter((f) => f.key !== key)), []);\n  const tally = tallyReactions(\n    kinds.map((k) => k.id),\n    reactions,\n  );\n\n  return (\n    <div\n      data-slot=\"reaction-stream\"\n      data-min-viewport={String(MIN_VIEWPORT)}\n      className={cn('relative grid min-h-24 content-end gap-3', className)}\n      {...props}\n    >\n      <div\n        aria-hidden\n        data-slot=\"reaction-stream-floats\"\n        className=\"pointer-events-none absolute inset-0 overflow-hidden\"\n      >\n        {floats.map((f) => (\n          <FloatIcon key={f.key} float={f} icon={icons.get(f.kind)} onDone={done} />\n        ))}\n      </div>\n      {showTally || reduced ? (\n        <ul data-slot=\"reaction-stream-tally\" className=\"relative flex flex-wrap justify-center gap-2\">\n          {tally.map(({ kind, count: n }) => {\n            const k = kinds.find((x) => x.id === kind) as ReactionKind;\n            return (\n              <li\n                key={kind}\n                data-kind={kind}\n                className=\"bg-card text-foreground inline-flex items-center gap-1.5 rounded-full border px-3 py-1 text-sm font-medium tabular-nums [&_svg]:size-4\"\n              >\n                <span aria-hidden className=\"text-primary inline-flex\">\n                  {k.icon}\n                </span>\n                <span className=\"sr-only\">{k.label}: </span>\n                {nf.format(n)}\n              </li>\n            );\n          })}\n        </ul>\n      ) : null}\n    </div>\n  );\n}\nReactionStream.displayName = 'ReactionStream';\n\n// --- RaiseHand --------------------------------------------------------------------\n\ninterface RaiseHandLabels {\n  /** @default 'Raise your hand' */\n  raise?: string;\n  /** @default 'Lower your hand' */\n  lower?: string;\n  /** @default (n) => n === 1 ? 'You are next.' : `You are number ${n} in line.` */\n  place?: (place: number) => string;\n  /** When the host calls on this person. @default 'It is your turn to speak.' */\n  speaking?: string;\n}\n\ntype RaiseHandProps = Omit<React.ComponentProps<'div'>, 'children' | 'onChange'> & {\n  raised: boolean;\n  onChange?: (raised: boolean) => void;\n  /** 1 for first in line (`placeInLine`). */\n  place?: number | null;\n  /** This person has the word. */\n  speaking?: boolean;\n  labels?: RaiseHandLabels;\n};\n\nfunction RaiseHand({ raised, onChange, place, speaking = false, labels, className, ...props }: RaiseHandProps) {\n  const message = speaking\n    ? (labels?.speaking ?? 'It is your turn to speak.')\n    : raised && place\n      ? (labels?.place ?? ((n: number) => (n === 1 ? 'You are next.' : `You are number ${n} in line.`)))(place)\n      : '';\n  return (\n    <div\n      data-slot=\"raise-hand\"\n      data-state={speaking ? 'speaking' : raised ? 'raised' : 'down'}\n      data-min-viewport={String(MIN_VIEWPORT)}\n      className={cn('grid justify-items-center gap-2', className)}\n      {...props}\n    >\n      <Button\n        type=\"button\"\n        size=\"lg\"\n        variant={raised || speaking ? 'default' : 'outline'}\n        aria-pressed={raised}\n        disabled={speaking}\n        onClick={() => onChange?.(!raised)}\n      >\n        {speaking ? (\n          <Mic aria-hidden />\n        ) : (\n          <Hand\n            aria-hidden\n            className={cn(\n              'transition-transform duration-(--duration-base) ease-enter',\n              raised && 'motion-safe:-translate-y-0.5 motion-safe:-rotate-12',\n            )}\n          />\n        )}\n        {raised ? (labels?.lower ?? 'Lower your hand') : (labels?.raise ?? 'Raise your hand')}\n      </Button>\n      <p\n        data-slot=\"raise-hand-message\"\n        aria-live=\"polite\"\n        className={cn('min-h-5 text-sm', speaking ? 'text-primary font-semibold' : 'text-muted-foreground')}\n      >\n        {message}\n      </p>\n    </div>\n  );\n}\nRaiseHand.displayName = 'RaiseHand';\n\n// --- HandQueue --------------------------------------------------------------------\n\ninterface HandQueueLabels {\n  /** @default 'Raised hands' */\n  title?: string;\n  /** @default 'Speaking' */\n  speaking?: string;\n  /** @default 'Call next' */\n  callNext?: string;\n  /** @default (name) => `Call on ${name}` */\n  callOn?: (name: string) => string;\n  /** @default 'Done' */\n  done?: string;\n  /** @default 'No hands up.' */\n  empty?: string;\n  /** @default (name) => `Lower ${name}'s hand` */\n  lower?: (name: string) => string;\n}\n\ntype HandQueueProps = Omit<React.ComponentProps<'section'>, 'children'> & {\n  hands: readonly RaisedHand[];\n  speaking?: RaisedHand | null;\n  /** Call on the first in line, or on `by`. */\n  onCall?: (by?: string) => void;\n  onLower?: (by: string) => void;\n  onDone?: () => void;\n  labels?: HandQueueLabels;\n};\n\nfunction HandQueue({ hands, speaking = null, onCall, onLower, onDone, labels, className, ...props }: HandQueueProps) {\n  const titleId = React.useId();\n  return (\n    <section\n      aria-labelledby={titleId}\n      data-slot=\"hand-queue\"\n      data-min-viewport={String(MIN_VIEWPORT)}\n      className={cn('grid gap-3', className)}\n      {...props}\n    >\n      <div className=\"flex items-center justify-between gap-3\">\n        <h3 id={titleId} className=\"flex items-baseline gap-2 text-sm font-semibold\">\n          {labels?.title ?? 'Raised hands'}\n          <span className=\"text-muted-foreground text-xs font-normal tabular-nums\">{hands.length}</span>\n        </h3>\n        <Button size=\"sm\" disabled={hands.length === 0} onClick={() => onCall?.()}>\n          <Mic aria-hidden />\n          {labels?.callNext ?? 'Call next'}\n        </Button>\n      </div>\n      {speaking ? (\n        <div\n          data-slot=\"hand-queue-speaking\"\n          className=\"border-primary motion-safe:animate-in motion-safe:slide-in-from-bottom-1 motion-safe:duration-(--duration-base) motion-safe:ease-enter flex items-center justify-between gap-3 rounded-md border p-3\"\n        >\n          <p className=\"text-sm\">\n            <span className=\"text-primary me-2 text-xs font-semibold\">{labels?.speaking ?? 'Speaking'}</span>\n            {speaking.name}\n          </p>\n          <Button size=\"sm\" variant=\"outline\" onClick={() => onDone?.()}>\n            {labels?.done ?? 'Done'}\n          </Button>\n        </div>\n      ) : null}\n      {hands.length === 0 ? (\n        <p className=\"text-muted-foreground text-sm\">{labels?.empty ?? 'No hands up.'}</p>\n      ) : (\n        <ol data-slot=\"hand-queue-list\" className=\"grid gap-1.5\">\n          {hands.map((h, i) => (\n            <li\n              key={h.by}\n              className=\"motion-safe:animate-in motion-safe:slide-in-from-bottom-1 motion-safe:duration-(--duration-base) motion-safe:ease-enter flex items-center gap-2 rounded-md border px-3 py-1.5\"\n            >\n              <span className=\"text-muted-foreground w-5 text-xs tabular-nums\">{i + 1}</span>\n              <span className=\"min-w-0 flex-1 truncate text-sm\">{h.name}</span>\n              <Button size=\"sm\" variant=\"ghost\" onClick={() => onCall?.(h.by)}>\n                {(labels?.callOn ?? ((n: string) => `Call on ${n}`))(h.name)}\n              </Button>\n              <Button\n                size=\"icon-sm\"\n                variant=\"ghost\"\n                aria-label={(labels?.lower ?? ((n: string) => `Lower ${n}'s hand`))(h.name)}\n                onClick={() => onLower?.(h.by)}\n              >\n                <Hand aria-hidden className=\"rotate-180\" />\n              </Button>\n            </li>\n          ))}\n        </ol>\n      )}\n    </section>\n  );\n}\nHandQueue.displayName = 'HandQueue';\n\nexport { ReactionBar, ReactionStream, RaiseHand, HandQueue };\nexport type { ReactionBarProps, ReactionStreamProps, RaiseHandProps, RaiseHandLabels, HandQueueProps, HandQueueLabels };\n"
    },
    {
      "path": "registry/interlace-ui/games/reactions-model.ts",
      "target": "components/ui/games/reactions-model.ts",
      "type": "registry:ui",
      "content": "export interface ReactionLimitOptions {\n  /** Reactions one person may send in a window. @default 6 */\n  perWindow?: number;\n  /** The window, in ms. @default 3000 */\n  windowMs?: number;\n}\n\n/** Recent reaction times per person. */\nexport type ReactionBudget = Readonly<Record<string, readonly number[]>>;\n\nexport function allowReaction(\n  budget: ReactionBudget,\n  by: string,\n  at: number,\n  options: ReactionLimitOptions = {},\n): { ok: boolean; budget: ReactionBudget; duplicate?: true } {\n  const { perWindow = 6, windowMs = 3000 } = options;\n  // Own keys only: a player id of `constructor` or `toString` would otherwise read an inherited function.\n  const mine = budget != null && Object.hasOwn(budget, by) ? budget[by] : undefined;\n  // A time that is not finite never expires, and NaN never fills the budget: refuse it.\n  if (!Number.isFinite(at)) return { ok: false, budget };\n  // A stamp later than this reaction came from a clock that ran ahead and was corrected: it would otherwise count for good.\n  // A forged entry that is not a number is not a reaction time.\n  const recent = Array.isArray(mine) ? mine.filter((t) => typeof t === 'number' && t <= at && at - t < windowMs) : [];\n  if (recent.includes(at)) return { ok: false, budget, duplicate: true };\n  if (recent.length >= perWindow) return { ok: false, budget: { ...budget, [by]: recent } };\n  return { ok: true, budget: { ...budget, [by]: [...recent, at] } };\n}\n\n/** Counts per kind, in the order the kinds are listed. */\nexport function tallyReactions(\n  kinds: readonly string[],\n  reactions: readonly { kind: string }[],\n): { kind: string; count: number }[] {\n  const counts = new Map(kinds.map((k) => [k, 0]));\n  // A null entry is skipped, and a kind listed twice is one row (the Map holds it once).\n  for (const r of reactions) if (counts.has(r?.kind)) counts.set(r.kind, (counts.get(r.kind) as number) + 1);\n  return [...counts].map(([kind, count]) => ({ kind, count }));\n}\n\n// --- Raised hands -----------------------------------------------------------------\n\nexport interface RaisedHand {\n  by: string;\n  /** The name to show the host. */\n  name: string;\n  /** When it went up, in ms (host clock). */\n  at: number;\n}\n\nexport interface HandState {\n  /** First raised first. */\n  hands: RaisedHand[];\n  /** The last person called on, until the next call or `done`. */\n  speaking: RaisedHand | null;\n}\n\nexport type HandEvent =\n  | { type: 'raise'; by: string; name: string; at: number }\n  | { type: 'lower'; by: string }\n  /**\n   * Calls on `by`, or the first in line when left out. Resolve the first in\n   * line on the host and send `by` over the wire, so a call delivered twice\n   * calls one person, not two.\n   */\n  | { type: 'call'; by?: string }\n  /** The speaker is finished. */\n  | { type: 'done' }\n  | { type: 'clear' };\n\nexport function createHands(): HandState {\n  return { hands: [], speaking: null };\n}\n\n/** Applies one event. Events that change nothing return the same state. */\nexport function applyHandEvent(state: HandState, event: HandEvent): HandState {\n  switch (event.type) {\n    case 'raise':\n      if (state.hands.some((h) => h.by === event.by)) return state;\n      return { ...state, hands: [...state.hands, { by: event.by, name: event.name, at: event.at }] };\n    case 'lower':\n      if (!state.hands.some((h) => h.by === event.by)) return state;\n      return { ...state, hands: state.hands.filter((h) => h.by !== event.by) };\n    case 'call': {\n      const hand = event.by === undefined ? state.hands[0] : state.hands.find((h) => h.by === event.by);\n      if (!hand) return state;\n      return { hands: state.hands.filter((h) => h !== hand), speaking: hand };\n    }\n    case 'done':\n      return state.speaking ? { ...state, speaking: null } : state;\n    case 'clear':\n      return createHands();\n  }\n}\n\n/** 1 for first in line, or null when this person's hand is down. */\nexport function placeInLine(state: HandState, by: string): number | null {\n  const i = state.hands.findIndex((h) => h.by === by);\n  return i === -1 ? null : i + 1;\n}\n\n/**\n * @interlace/ui — reactions-model\n *\n * Two small room states a host owns: live reactions (taps that float up on a\n * shared screen) and raised hands (a fair queue of who wants to speak).\n * Pure, so the host and a server agree on who was first and on what got\n * through.\n *\n * ## Reactions\n *\n * A tap is cheap to send and a crowd taps fast, so every person gets a\n * budget: `perWindow` reactions in any `windowMs` (default 6 in 3 seconds).\n * `allowReaction` says yes or no and returns the new budget state; a screen\n * shows only what was allowed. The same person's reaction at the same time\n * is one reaction, so a reconnect that resends it shows nothing new and\n * spends no budget (`duplicate: true`). `tallyReactions` counts by kind, for a\n * recap or for the reduced-motion view.\n *\n * ## Raised hands\n *\n * First raised, first called. Lowering a hand and raising it again goes to\n * the back of the line. `call` takes the first hand (or a named one) off the\n * queue and remembers it as `speaking`.\n */\n\n// --- Reactions --------------------------------------------------------------------\n"
    }
  ],
  "meta": {
    "tier": "game",
    "client": true,
    "minViewport": 320,
    "loading": false,
    "version": "1.0.0",
    "since": "2.0.0"
  },
  "docs": "## @interlace/reactions\n\nInstalled to `components/ui/games/reactions.tsx`.\n\n```tsx\nimport { /* … */ } from '@/components/ui/games/reactions';\n```\n\nProps, a11y contract, live preview and source: https://ds.interlace.tools/c/reactions\n\nRequires the `@interlace/interlace-base` CSS baseline (installed automatically as a registry dependency). For the Interlace look, also add `@interlace/theme`."
}
