Utility
AI
Terminal
git-status-demo
No opentui live preview is registered for this example yet.
Installation
pnpm dlx shadcn@latest add @termcn/git-status
Usage
import { GitStatus } from "@/components/ui/git-status";<GitStatus branch="main" staged={2} modified={5} ahead={1} behind={0} />API Reference
GitStatus
| Prop | Type | Default |
|---|---|---|
branch | string | required |
staged | number | 0 |
modified | number | 0 |
ahead | number | 0 |
behind | number | 0 |