Utility
Terminal
Installation
$ pnpm dlx shadcn@latest add @termcn/ink/heading
Usage
import { Heading } from "@/components/ui/heading";<Heading level={1}>Getting Started</Heading>API Reference
Heading
| Prop | Type | Default |
|---|---|---|
level | 1 | 2 | 3 | 4 | 1 |
children | ReactNode | required |
color | string | - |
prefix1 | string | "██ " |
prefix2 | string | "▌ " |
prefix3 | string | "› " |
uppercase | boolean | true |
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.