# ActionBarPrimitive URL: /docs/api-reference/primitives/action-bar Buttons for message actions like copy, edit, reload, speak, and feedback. *** title: ActionBarPrimitive description: Buttons for message actions like copy, edit, reload, speak, and feedback. -------------------------------------------------------------------------------------- Buttons to interact with the message. import { ParametersTable } from "@/components/docs/tables/ParametersTable"; import { DataAttributesTable } from "@/components/docs/tables/DataAttributesTable"; import { Code } from "@radix-ui/themes"; ## Anatomy ```tsx import { ActionBarPrimitive } from "@assistant-ui/react"; const UserMessageBar = () => ( ); const AssistantMessageBar = () => ( ); ``` ## API Reference ### Container Containts all parts of the action bar. This primitive renders a `
` element unless `asChild` is set. Do not render the ActionBar when the thread is in running state. ), }, { name: "autohide", type: '"always" | "not-last" | "never"', default: '"never"', description: ( Do not render the ActionBar unless the mouse is hovering over the message.

"always": always autohide.
"not-last"; only autohide if the message is not the last one in the thread.
), }, { name: "autohideFloat", type: '"always" | "single-branch" | "never"', default: '"never"', description: ( Float the ActionBar during autohide.

"always": always float during autohide.
"single-branch": only float if the message is the only one in the thread.

Note: this only sets `data-floating` on the ActionBar. You need to set the appropriate styles on the ActionBar to make it float.
), }, ]} /> ### Edit Enables edit mode on user message. This primitive renders a `