# AssistantModalPrimitive URL: /docs/api-reference/primitives/assistant-modal A popover chat interface for floating assistant UI in the corner of the screen. *** title: AssistantModalPrimitive description: A popover chat interface for floating assistant UI in the corner of the screen. -------------------------------------------------------------------------------------------- A modal chat UI usually displayed in the bottom right corner of the screen. import { Code } from "@radix-ui/themes"; import { ParametersTable } from "@/components/docs/tables/ParametersTable"; import { DataAttributesTable } from "@/components/docs/tables/DataAttributesTable"; ## Anatomy ```tsx import { AssistantModalPrimitive } from "@assistant-ui/react"; const Thread = () => ( ); ``` ## API Reference ### Root Contains all parts of the assistant modal. void", description: "Event handler called when the open state of the assistant modal changes.", }, { name: "modal", type: "boolean", default: "false", description: "The modality of the assistant modal. When set to true, interaction with outside elements will be disabled and only modal content will be visible to screen readers.", }, ]} /> ### Trigger A button that toggles the open state of the assistant modal. `AssistantModalPrimitive.Content` will position itself against this button. This primitive renders a `