Skip to main content

Installation

Setup

Initialize Artifactuse with setArtifactuseContext in your layout:

Syntax Highlighting (Optional)

For code syntax highlighting, add Prism.js:

Components

ArtifactuseAgentMessage

Render AI messages with artifact detection

ArtifactusePanel

Side panel for previews and code

ArtifactusePanelToggle

Toggle button with badge

Quick Reference

Context

getArtifactuseContext

Access Artifactuse state and methods:

Events

Full Example