Plan
A collapsible plan component for displaying AI-generated execution plans with streaming support and shimmer animations.
The Plan component provides a flexible system for displaying AI-generated execution plans with collapsible content. Perfect for showing multi-step workflows, task breakdowns, and implementation strategies with support for streaming content and loading states.
Install using CLI
Install Manually
Copy and paste the following code in the same folder.
Features
- Collapsible content with smooth animations
- Streaming support with shimmer loading states
- Built on shadcn-vue Card and Collapsible components
- TypeScript support with comprehensive type definitions
- Customizable styling with Tailwind CSS
- Responsive design with mobile-friendly interactions
- Keyboard navigation and accessibility support
- Theme-aware with automatic dark mode support
- Context-based state management for streaming
Props
<Plan />
isStreamingboolean
falsedefaultOpenboolean
falseclassstring
<PlanHeader />
classstring
<PlanDescription />
classstring
<PlanTrigger />
classstring
:::