009
The quiet row under an AI reply where every small action gives something back: copy draws a check, regenerate opens a version switcher, a thumb asks what worked and read aloud turns into an equaliser.
akacopy·regenerate·feedback
Run this in any project set up for the shadcn CLI. It copies the Reply Toolbar source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/reply-toolbar.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { ReplyToolbar } from "@/components/reply-toolbar";
export default function Page() {
return <ReplyToolbar />;
}A free React component in the Conversation collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Reply Toolbar source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| text | string | "" |
| initialVersions | number | 1 |
| maxVersions | number | 5 |
| reasons | Record<Vote, string[]> | defaultReasons |
| speakDuration | number | 4200 |
| onRegenerate | () => void | — |
| onVersionChange | (index: number, total: number) => void | — |
| onFeedback | (vote: Vote | null, reason?: string) => void | — |
| onSpeak | (speaking: boolean) => void | — |
| className | string | — |