Julien Thibeaut

Feedback Bar

AI chats 26

About

A compact inline bar for collecting thumbs-up/thumbs-down feedback on AI chat responses, with a dismiss button.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Feedback Bar to your project and fits it to your theme.

Code

How Feedback Bar is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import { FeedbackBar } from "@/components/ui/feedback-bar";
import { Info } from "lucide-react";

export default function FeedbackBarBasic() {
  return (
    <div className="flex w-full max-w-sm flex-col gap-4">
      <FeedbackBar
        title="Was this response helpful?"
        icon={<Info className="text-primary size-4" />}
        onHelpful={() => console.log("helpful")}
        onNotHelpful={() => console.log("not helpful")}
        onClose={() => console.log("close")}
      />
    </div>
  );
}

Dependencies

More by Julien Thibeaut

View all
  • Dock

    Dock

    3.1K
  • Text Effect

    Text Effect

    1.6K
  • Infinite Slider

    Infinite Slider

    1.5K
  • Text Shimmer

    Text Shimmer

    1.3K
  • Text Scramble

    Text Scramble

    1.1K
  • Progressive blur

    Progressive blur

    683
  • Glow Effect

    Glow Effect

    610
  • Tailwind CSS Background Snippet

    Tailwind CSS Background Snippet

    535

More in AI chats

View all
  • AI Actions

    AI Actions

    319
  • Agent Chat

    Agent Chat

    17
  • System Message

    System Message

    54
  • Message Thread

    Message Thread

    35
  • Color Picker

    Color Picker

    81
  • AI Task List

    AI Task List

    160
  • Modal Card

    Modal Card

    101
  • Quota Banner

    Quota Banner

    21

Explore more

Part of Motion Primitives — browse the full library on 21st.dev.