Julien Thibeaut

Feedback Bar

AI chats 32

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.2K
  • Text Effect

    Text Effect

    1.7K
  • Infinite Slider

    Infinite Slider

    1.5K
  • Text Shimmer

    Text Shimmer

    1.3K
  • Text Scramble

    Text Scramble

    1.1K
  • Progressive blur

    Progressive blur

    695
  • Glow Effect

    Glow Effect

    619
  • Tailwind CSS Background Snippet

    Tailwind CSS Background Snippet

    575

More in AI chats

View all
  • AI Actions

    AI Actions

    334
  • Color Picker

    Color Picker

    147
  • Message With Header And Delivery Status

    Message With Header And Delivery Status

    47
  • Source Lens

    Source Lens

    7
  • AI Task List

    AI Task List

    179
  • System Message

    System Message

    70
  • Attachments

    Attachments

    30
  • Cost Meter

    Cost Meter

    40

Explore more

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