Utility
Terminal
Installation
$ pnpm dlx shadcn@latest add @termcn/ink/definition
Usage
import { Definition } from "@/components/ui/definition";<Definition
items={[
{ term: "CLI", description: "Command Line Interface" },
{ term: "TUI", description: "Terminal User Interface" },
]}
/>API Reference
Definition
| Prop | Type | Default |
|---|---|---|
items | DefinitionItem[] | required |
termColor | string | - |
DefinitionItem
| Prop | Type | Default |
|---|---|---|
term | string | required |
description | string | required |
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.