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.
Loading preview…
Installation
npm i zjkm-ui-ai-elementsimport { Plan, PlanHeader, PlanTitle, PlanDescription, PlanAction, PlanContent, PlanFooter, PlanTrigger,} from "zjkm-ui-ai-elements/plan";First time? Add the package's styles: see Setup.
Features
- Collapsible content with smooth animations
- Streaming support with shimmer loading states
- Built on shadcn/ui 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 />
Prop
Type
<PlanHeader />
Prop
Type
<PlanTitle />
Prop
Type
<PlanDescription />
Prop
Type
<PlanTrigger />
Prop
Type
<PlanContent />
Prop
Type
<PlanFooter />
Prop
Type
<PlanAction />
Prop
Type