Components (172)
Message Actions
Reusable Clean-style UI component built on Base UI and Tailwind CSS v4.
Loading Message Actions…
Usage
import { MessageActions } from "ui-kit/components/message-actions";Props
| Prop | Type | Default | Description |
|---|---|---|---|
text | string | — | — |
actions | MessageActionKey[] | DEFAULT_ACTIONS | — |
versions | number | string[] | — | — |
version | number | — | — |
defaultVersion | number | — | — |
onVersionChange | (index: number) => void | — | — |
onCopy | (text?: string) => void | — | — |
onRegenerate | () => void | — | — |
regenerating | boolean | false | — |
onFeedback | (kind: FeedbackKind | null, reason?: string) => void | — | — |
reasons | string[] | DEFAULT_REASONS | — |
onSpeak | (playing: boolean) => void | — | — |
speaking | boolean | — | — |
speakDuration | number | — | — |
quiet | boolean | true | — |
label | string | "Message actions" | — |
className | string | — | — |