Plan

A collapsible plan component for displaying AI-generated execution plans with streaming support and shimmer animations.

Rewrite AI Elements to SolidJS

Rewrite the AI Elements component library from React to SolidJS while maintaining compatibility with existing React-based shadcn/ui components using solid-js/compat, updating all 29 components and their test suite.

Installation

pnpm dlx shadcn-svelte@latest add https://svelte-ai-elements.vercel.app/r/plan.json

If you prefer using jsrepo, please install via the command below:

pnpm dlx jsrepo add @ai/elements/ai-elements/plan

Props

Plan

NameTypeDefault
isStreaming
boolean false
defaultOpen
boolean false
open
boolean
onOpenChange
(open: boolean) => void
class
string
children
Snippet

PlanTitle

NameTypeDefault
children
Snippet
class
string

PlanDescription

NameTypeDefault
children
Snippet
class
string

PlanContent

NameTypeDefault
children
Snippet
class
string