Utility
Terminal
█
git-status-demo █
Loading preview... █
█
█
█
█
█
█
█
█
█
█
█
█
█
█
█Installation
$ pnpm dlx shadcn@latest add @termcn/opentui/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 |