/
1.1k
Sponsor

Git Status

Git status display (branch, staged, modified, ahead/behind)

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

PropTypeDefault
branchstringrequired
stagednumber0
modifiednumber0
aheadnumber0
behindnumber0

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.