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
drawer-demo
No opentui live preview is registered for this example yet.
Installation
$ pnpm dlx shadcn@latest add @termcn/drawer
Usage
import { Drawer } from "@/components/ui/drawer";<Drawer
isOpen={true}
edge="right"
title="Details"
width={40}
onClose={() => close()}
>
<Text>Name: my-project</Text>
<Text>Status: active</Text>
</Drawer>API Reference
Drawer
| Prop | Type | Default |
|---|---|---|
isOpen | boolean | false |
edge | "left" | "right" | "top" | "bottom" | "right" |
title | string | - |
children | ReactNode | required |
onClose | () => void | - |
width | number | 40 |
height | number | 10 |