Ai Artifact Preview
A production-scale, light + dark Ai Artifact Preview component. Copy-paste via the CLI; you own the code.
npx lerpa-cli add ai-artifact-previewUsage
import { GlowButton } from "@lerpa/ui";
<GlowButton />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | — | |
| type | ArtifactType | — | |
| code | string | — | |
| preview | React.ReactNode | — | |
| versions | { id: string | — | |
| label | string }[] | - | |
| accent | string | — | |
| defaultMode | "preview" | "code" | — |
Accessibility
- Keyboard accessible interactive elements.
- Respects prefers-reduced-motion where animated.
- Color is never the only signal.