Skip to main content

Installation

Setup

Wrap your app with ArtifactuseProvider:

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

Hooks

useArtifactuse

Access Artifactuse state and methods:

Events

Full Example