Utility
Terminal
Installation
$ pnpm dlx shadcn@latest add @termcn/ink/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 |
Notes
Accessibility
termcn exposes the following behavior through Ink's terminal accessibility APIs. This is not a browser ARIA or general WCAG-conformance claim.
- Screen reader: Ink labels and semantic state expose the component without relying on visual styling alone.