Utility
Terminal
Installation
$ pnpm dlx shadcn@latest add @termcn/ink/clock
Usage
import { Clock } from "@/components/ui/clock";<Clock format="12h" showSeconds showDate timezone="America/New_York" />API Reference
Clock
| Prop | Type | Default |
|---|---|---|
format | "12h" | "24h" | "24h" |
showSeconds | boolean | true |
showDate | boolean | false |
timezone | string | - |
color | string | - |
size | "sm" | "lg" | "sm" |
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.