# makeAssistantVisible URL: /docs/copilots/make-assistant-readable Make React components visible and interactive to assistants via higher-order component wrapping. `makeAssistantVisible` is a higher-order component (HOC) that makes React components "visible" by the assistant, allowing it to understand and interact with the component's HTML structure. Usage \[#usage] ```tsx import { makeAssistantVisible } from "@assistant-ui/react"; const Button = ({ onClick, children }) => ( ); // Basic usage - makes component HTML readable const ReadableButton = makeAssistantVisible(Button); // With clickable configuration const ClickableButton = makeAssistantVisible(Button, { clickable: true, // Enables the click tool }); ``` API Reference \[#api-reference] Parameters \[#parameters] * `Component`: The base React component to enhance * `config`: Optional configuration object * `clickable`: When true, enables the assistant to programmatically click the component Behavior \[#behavior] The HOC will: 1. Make the component's HTML structure available to the assistant via the system context 2. Optionally provide a `click` tool if `clickable` is true 3. Handle nested readable components (only the outermost component's HTML is provided) 4. Forward refs and maintain component props Example \[#example] ```tsx // Create a readable form input const Input = ({ label, ...props }) => (