Rendyn

Component library

189 components

Product blocks

Feedback Widget

Feedback Widget opens a compact form and can await a submit callback.

Interactive exampleReact Tailwind CSS

Practical React example

Collect a short product suggestion without interrupting the task someone is doing.

Before you copy and paste

Keep the example in the React rendering environment required by the imported component. Copy components/motion/feedback-widget.tsx and its returned support files from the Code tab; preserve the project-relative paths.

Listed package dependencies: clsx, lucide-react, motion, react, tailwind-merge.

Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.

Collect a short product suggestion without interrupting the task someone is doing

// Usage adapted from beUI's pinned MIT source.
// Copyright (c) 2026 Saurabh Chauhan. See ./LICENSES.md.
"use client";

import { useRef } from "react";
import { FeedbackWidget } from "@/components/motion/feedback-widget";

export function FeedbackWidgetPreview() {
  const attempts = useRef(0);

  const submitFeedback = async () => {
    await new Promise((resolve) => setTimeout(resolve, 900));
    attempts.current += 1;

    if (attempts.current === 1) {
      throw new Error("Preview submission failed");
    }
  };

  return (
    <div className="relative h-80 w-full max-w-md overflow-hidden rounded-2xl border border-border bg-background">
      {/* Faux app surface so the corner trigger has something to sit on. */}
      <div className="border-b border-border px-5 py-3">
        <div className="h-2.5 w-24 rounded-full bg-muted-foreground/20" />
      </div>
      <div className="flex flex-col gap-3 p-5">
        <div className="h-2.5 w-3/4 rounded-full bg-muted-foreground/15" />
        <div className="h-2.5 w-1/2 rounded-full bg-muted-foreground/15" />
        <div className="h-24 w-full rounded-xl bg-muted-foreground/[0.06]" />
        <div className="h-2.5 w-2/3 rounded-full bg-muted-foreground/15" />
      </div>

      <FeedbackWidget onSubmit={submitFeedback} />
    </div>
  );
}

Usage example adapted from beUI's pinned MIT source. Retain the source licence notices when copying.

Return the real send promise from onSubmit and distinguish accepted feedback from a merely closed widget. Keep an ordinary support route available for urgent issues.

Customization

FeedbackWidgetProps.onSubmit
Optional; (data: FeedbackData) => void | Promise<void>. Called on submit. May be async; the button shows a sending state until it resolves.
FeedbackWidgetProps.position
Optional; "bottom-right" | "bottom-left".
FeedbackWidgetProps.title
Optional; string.
FeedbackWidgetProps.placeholder
Optional; string.
FeedbackWidgetProps.icon
Optional; ReactNode.
FeedbackWidgetProps.className
Optional; string.
ButtonProps.variant
Optional; ButtonVariant.
ButtonProps.size
Optional; ButtonSize.
ButtonProps.pressScale
Optional; number.
ButtonProps.ripple
Optional; boolean. Spawn a Material-style ripple from the press point. Off by default.
ButtonProps.children
Optional; ReactNode.
ButtonLinkProps.variant
Optional; ButtonVariant.
ButtonLinkProps.size
Optional; ButtonSize.
ButtonLinkProps.pressScale
Optional; number.

Integration notes

  • Validate and rate-limit submissions on the server, and avoid collecting unnecessary personal information.
  • A fixed widget must not obscure important controls or trap focus on a narrow screen.

Component source: beUI documentation . These examples describe the version imported into Rendyn. Upstream APIs may have changed; retain the source licence notices when adapting the code.

Better with your agent

Give your agent taste.

The best way to use Rendyn is through MCP. Let your agent find the right component, compare previews and bring the source into your project.

All components are free. Sign up only to connect MCP.

Connect to MCP