AI artifact
A side panel that shows a generated document or code, with copy and versions.
Onboarding checklist
Document · Version 3
Onboarding checklist
- Create your workspace
- Invite two teammates
- Connect a data source
- Build your first dashboard
- Turn on weekly email digests
When to use
- An assistant produces something the user keeps working on.
- You want the result separate from the chat.
When not to use
- The reply is short; keep it in the message.
Installation
pnpm dlx shadcn@latest add @caliper/ai-artifact
Adds its 5 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
AiArtifact
6 props
Keyboard
- Escape
- Closes or cancels, then returns focus to where it came from.
Accessibility
It exposes tablist, tab, menu, menuitemradio, status and tabpanel semantics, with aria-label, aria-selected, aria-checked, aria-haspopup, aria-expanded and aria-hidden kept in step with state. Changes that matter are announced through a live region.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/ai-artifact.mdThe index of every part is at /llms.txt.