This template provides a setup for running Claude-generated UI artifacts in a React + Vite environment with Hot Module Reloading (HMR).
-
Clone this repository
-
Install dependencies: bash npm install
-
Run the development server: bash npm run dev
To use your Claude-generated UI code:
- Locate the
src/components/Artifact.jsx
file - Replace the contents with your Claude-generated artifact code
- Create a new file in the
src/views
directory - Add the file to the
src/App.jsx
file - Add a link and meta info to the
src/Home.jsx
file to show it in the index