Message Actions

A row of ghost icon buttons for chat replies: copy, retry, good response and bad response, each with an aria label and callback. Place it under AI messages.

src/registry/ui/message-actions.tsx/r/message-actions.json

Installation#

bash
npx shadcn@latest add @minidev/message-actions

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/message-actions.json

Usage#

tsx
import { MessageActions } from "@/components/ui/message-actions"

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

API reference#

MessageActions props
PropTypeDefault
onCopy() => void-
onRetry() => void-
onGood() => void-
onBad() => void-
classNamestring-

Dependencies#

npm

lucide-react

Built from

Examples#

All AI chat UI components for React

Learn more