MessageActions
Copy, rate, and regenerate — the quiet row under an answer, where each action confirms itself.
Install it:
npx shadcn add @ambientui/message-actionsLive
rating: none · last: —
Behavior
- ·Each action confirms ITSELF rather than raising a toast: copy becomes a check for a beat, a rating stays lit. A toast for a copy is a notification about something the user is already looking at.
- ·Ratings toggle — pressing the lit thumb clears it, because a mis-tap should not become permanent signal.
- ·Copy only shows the check once the clipboard write actually resolved; a denied clipboard confirms nothing.
- ·Ghost weight throughout: these sit under every answer, so they must not compete with the answer itself.
When to use
- ·Under any completed assistant answer.
- ·Anywhere the user's reaction is worth capturing at the moment they have it.
When not to
- ·On a message still streaming — rating an unfinished answer measures patience, not quality.
- ·For destructive actions; put those behind the More control with their own confirmation.