Regenerate Bar

Footer bar for AI answers with a Not quite right prompt, a Regenerate button with a refresh icon, and an optional Edit prompt action when onEdit is set.

src/registry/ui/regenerate-bar.tsx/r/regenerate-bar.json

Installation#

bash
npx shadcn@latest add @minidev/regenerate-bar

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/regenerate-bar.json

Usage#

tsx
import { RegenerateBar } from "@/components/ui/regenerate-bar"

export function Example() {
  return <RegenerateBar />
}

API reference#

RegenerateBar props
PropTypeDefault
onRegenerate() => void-
onEdit() => void-
classNamestring-

Dependencies#

npm

lucide-react

Built from

All AI chat UI components for React