BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/ruixen-ui/centered-feedback-drawer
This component no longer exists. It was in ruixen-ui’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-12 and this item was not on it. The install command below will fail. It is kept here because a tutorial somewhere still tells people to run it.

Centered Feedback Drawer

ruixen-ui/centered-feedback-drawer
RemovedComponent

Centered feedback panel — three SVG faces, contextual comment, spring selection, auto-dismiss thank-you state.

Live preview

live · rendered by the registry
Rendered by ruixen-ui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://ruixen.com/r/centered-feedback-drawer.json

Source

registry/ruixenui/centered-feedback-drawer.tsxruixen.com/r/centered-feedback-drawer.json · first 6 KB
1"use client";
2
3import { useRef, useState } from "react";
4import { motion, AnimatePresence } from "motion/react";
5
6/**
7 * Centered Feedback Drawer — three emoji, one question.
8 *
9 * Not a form. Not a survey. Three faces —
10 * 🙁 😐 😊 — universally understood in an instant.
11 * Click one. It springs up, the others dim. A contextual
12 * textarea slides in: "What went wrong?" or "What did you
13 * enjoy?" — the interface reads your mood. Submit. Done.
14 *
15 * The faces are the interface.
16 */
17
18/* ── Types ── */
19
20export interface FeedbackData {
21 rating: number;
22 label: string;
23 message: string;
24}
25
26export interface CenteredFeedbackDrawerProps {
27 open: boolean;
28 onOpenChange: (open: boolean) => void;
29 onSubmit?: (feedback: FeedbackData) => void;
30 sound?: boolean;
31}
32
33/* ── Constants ── */
34
35const RATINGS = [
36 { label: "Not great", placeholder: "What went wrong?" },
37 { label: "Okay", placeholder: "What could be better?" },
38 { label: "Great", placeholder: "What did you enjoy?" },
39];
40
41/* ── Audio ── */
42
43let _ctx: AudioContext | null = null;
44let _buf: AudioBuffer | null = null;
45
46function audioCtx() {
47 if (!_ctx) {
48 _ctx = new (window.AudioContext ||
49 (window as unknown as { webkitAudioContext: typeof AudioContext })
50 .webkitAudioContext)();
51 }
52 if (_ctx.state === "suspended") _ctx.resume();
53 return _ctx;
54}
55
56function ensureBuf(ac: AudioContext): AudioBuffer {
57 if (_buf && _buf.sampleRate === ac.sampleRate) return _buf;
58 const rate = ac.sampleRate;
59 const len = Math.floor(rate * 0.003);
60 const buf = ac.createBuffer(1, len, rate);
61 const ch = buf.getChannelData(0);
62 for (let i = 0; i < len; i++) {
63 const t = i / len;
64 ch[i] = (Math.random() * 2 - 1) * (1 - t) ** 4;
65 }
66 _buf = buf;
67 return buf;
68}
69
70function playTick(last: React.MutableRefObject<number>) {
71 const now = performance.now();
72 if (now - last.current < 80) return;
73 last.current = now;
74 try {
75 const ac = audioCtx();
76 const buf = ensureBuf(ac);
77 const src = ac.createBufferSource();
78 const gain = ac.createGain();
79 src.buffer = buf;
80 src.playbackRate.value = 1.15;
81 gain.gain.value = 0.03;
82 src.connect(gain);
83 gain.connect(ac.destination);
84 src.start();
85 } catch {
86 /* silent */
87 }
88}
89
90/* ── Emoji Faces ── */
91
92const EMOJIS = ["🙁", "😐", "😊"];
93
94/* ── Component ── */
95
96export function CenteredFeedbackDrawer({
97 open,
98 onOpenChange,
99 onSubmit,
100 sound = true,
101// … truncated

What it pulls in

npm packages

  • motion

Files it writes

  • registry/ruixenui/centered-feedback-drawer.tsx

Facts

Registry
ruixen-ui
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-01
Last confirmed
7 days ago

Go to the source

Docs on ruixen-ui ruixen.com ruixenui/ruixen.com on GitHub Raw registry item This item as JSON

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