Skip to main content

Installation

Setup

Initialize Artifactuse with provideArtifactuse:

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

Composables

useArtifactuse

Access Artifactuse state and methods:

Events

Vue 2

For Vue 2 projects, import from artifactuse/vue2:

Vue 2.6 + @vue/composition-api

If you’re using Vue 2.6 with @vue/composition-api or @nuxtjs/composition-api, add this alias to your build config:
Vue 2.7+ has the Composition API built-in and works without any alias configuration.

Full Example