Themes
- Default
- Catppuccin
- Dracula
- High Contrast
- High Contrast Light
- Monokai
- Nord
- One Dark
- Solarized
- Tokyo Night
- AMOLED
- Aura
- Ayu
- Carbonfox
- Catppuccin Frappe
- Catppuccin Macchiato
- Cobalt2
- Cursor
- Everforest
- Flexoki
- GitHub
- Gruvbox
- Kanagawa
- Lucent Orng
- Material
- Matrix
- Mercury
- Night Owl
- OC-2
- One Dark Pro
- OpenCode
- Orng
- Osaka Jade
- Palenight
- Rose Pine
- Shades of Purple
- Synthwave '84
- Vercel
- Vesper
- Zenburn
Utility
AI
Terminal
Installation
$ pnpm dlx shadcn@latest add @termcn/conversation-history
Usage
import { ConversationHistory } from "@/components/ui/conversation-history";
import { Text } from "ink";<ConversationHistory maxHeight={12} isActive>
<Text>user: Hello</Text>
<Text>assistant: Hi — how can I help?</Text>
</ConversationHistory>When isActive is true, ↑ / ↓ move the window over children. The view starts scrolled to the bottom (maxHeight lines visible).
API Reference
ConversationHistory
| Prop | Type | Default |
|---|---|---|
maxHeight | number | 20 |
children | ReactNode | - |
showScrollHint | boolean | true |
isActive | boolean | true |