# ActionBarPrimitive URL: /docs/api-reference/primitives/action-bar Buttons for message actions like copy, edit, reload, speak, and feedback. Buttons to interact with the message. Anatomy \[#anatomy] ```tsx import { ActionBarPrimitive } from "@assistant-ui/react"; const UserMessageBar = () => ( ); const AssistantMessageBar = () => ( ); ``` API Reference \[#api-reference] Root \[#root] Contains all parts of the action bar. This primitive renders a `
` element unless `asChild` is set. | Data attribute | Values | | ----------------- | --------------------- | | `[data-floating]` | Present when floating | Edit \[#edit] Enables edit mode on user message. This primitive renders a `