Chain of Thought
A collapsible component that visualizes AI reasoning steps with support for search results, images, and step-by-step progress indicators.
The ChainOfThought component provides a visual representation of an AI's reasoning process, showing step-by-step thinking with support for search results, images, and progress indicators. It helps users understand how AI arrives at conclusions.
Install using CLI
Install Manually
Copy and paste the following files into the same folder.
Features
- Collapsible interface with smooth animations powered by Reka UI
- Step-by-step visualization of AI reasoning process
- Support for different step statuses (complete, active, pending)
- Built-in search results display with badge styling
- Image support with captions for visual content
- Custom icons for different step types
- Context-aware components using Inject/Provide API
- Fully typed with TypeScript
- Accessible with keyboard navigation support
- Responsive design that adapts to different screen sizes
- Smooth fade and slide animations for content transitions
- Composable architecture for flexible customization
Props
<ChainOfThought />
defaultOpenboolean
classstring
''<ChainOfThoughtHeader />
classstring
''<ChainOfThoughtStep />
labelstring
descriptionstring
status'complete' | 'active' | 'pending'
'complete'classstring
''<ChainOfThoughtSearchResults />
classstring
''<ChainOfThoughtSearchResult />
classstring
''<ChainOfThoughtContent />
classstring
''<ChainOfThoughtImage />
captionstring
classstring
''