Feedback Thumbs

Thumbs up and thumbs down buttons for rating an answer or article. Uses aria-pressed, toggles off on a second click, and works controlled or uncontrolled.

src/registry/ui/feedback-thumbs.tsx/r/feedback-thumbs.json

Installation#

bash
npx shadcn@latest add @minidev/feedback-thumbs

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/feedback-thumbs.json

Usage#

tsx
import { FeedbackThumbs } from "@/components/ui/feedback-thumbs"

export function Example() {
  return (
    <FeedbackThumbs value={thumb} onChange={setThumb} />
  )
}

API reference#

FeedbackThumbs props
PropTypeDefault
value"up" | "down" | null-
onChange(v: "up" | "down" | null) => void-
classNamestring-

Dependencies#

npm

lucide-react

Built from

No other MiniDev files

Examples#

All AI chat UI components for React

Learn more