Code Editor
A powerful code editing component with syntax highlighting, multiple language support, and AI-assisted code generation. Perfect for documentation, tutorials, and collaborative coding environments.
Preview

Installation
Schema & Prompt Control
Conversation
Installation
Instructions
# Initialize HAX in your project agntcy-hax init # Add the component agntcy-hax add artifact code-editor
Usage
The code editor component integrates with AI agents through CopilotKit. Users interact with AI agents through natural language, and the agents automatically create and populate code editors.
Component Setup
Setup
import { HAXCodeEditor, useCodeEditorAction } from "@/hax/artifacts/code-editor";export function DocumentationPage() {const [artifacts, setArtifacts] = useState([]);// Register code editor actions for AI agentsuseCodeEditorAction({addOrUpdateArtifact: (type, data) => {// Handle code editor updates}});return (<HAXCodeEditorlanguage="javascript"value={codeContent}/>);}
Code Editor
A powerful code editing component with syntax highlighting, multiple language support, and AI-assisted code generation. Perfect for documentation, tutorials, and collaborative coding environments.
Preview

Installation
Schema & Prompt Control
Conversation
Installation
Instructions
# Initialize HAX in your project agntcy-hax init # Add the component agntcy-hax add artifact code-editor
Usage
The code editor component integrates with AI agents through CopilotKit. Users interact with AI agents through natural language, and the agents automatically create and populate code editors.
Component Setup
Setup
import { HAXCodeEditor, useCodeEditorAction } from "@/hax/artifacts/code-editor";export function DocumentationPage() {const [artifacts, setArtifacts] = useState([]);// Register code editor actions for AI agentsuseCodeEditorAction({addOrUpdateArtifact: (type, data) => {// Handle code editor updates}});return (<HAXCodeEditorlanguage="javascript"value={codeContent}/>);}