AiSandbox
Sandbox
Runnable code sandbox preview.
Model Selector
const models = ['gpt-4o', 'claude-sonnet', 'gemini-pro']
const picked = models[Math.floor(Math.random() * models.length)]
console.log('Selected:', picked)Usage
<AiSandbox :code="html" language="html" :auto-run="true" />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| code* | string | — | — |
| language | string | 'html' | — |
| autoRun | boolean | false | — |
Slots
previewcodetoolbar