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
line-chart-demo
No opentui live preview is registered for this example yet.
Installation
$ pnpm dlx shadcn@latest add @termcn/line-chart
Usage
import { LineChart } from "@/components/ui/line-chart";<LineChart
data={[
{ label: "Jan", value: 30 },
{ label: "Feb", value: 45 },
{ label: "Mar", value: 28 },
]}
width={40}
height={10}
title="Monthly Sales"
/>API Reference
LineChart
| Prop | Type | Default |
|---|---|---|
data | (number | { label?: string; value: number })[] | required |
width | number | 40 |
height | number | 10 |
title | string | - |
color | string | - |
showAxes | boolean | true |