Utility
AI
Terminal
Installation
pnpm dlx shadcn@latest add https://termcn.dev/r/help-screen.json
Usage
import { HelpScreen } from "@/components/ui/help-screen";<HelpScreen
title="mycli"
tagline="A blazing-fast task runner"
usage="mycli <command> [options]"
>
<HelpScreen.Section label="Commands">
<HelpScreen.Row flag="init" description="Create a new project" />
<HelpScreen.Row flag="build" description="Compile the source files" />
<HelpScreen.Row flag="test" description="Run the test suite" />
</HelpScreen.Section>
<HelpScreen.Section label="Options">
<HelpScreen.Row flag="--help, -h" description="Show this help message" />
<HelpScreen.Row flag="--version, -v" description="Print version number" />
<HelpScreen.Row flag="--verbose" description="Enable verbose logging" />
</HelpScreen.Section>
</HelpScreen>API Reference
HelpScreen
| Prop | Type | Default |
|---|---|---|
title | string | required |
font | "block" | "simple" | "shade" | "slim" | "block" |
titleColor | string | undefined |
tagline | string | undefined |
usage | string | undefined |
description | string | undefined |
columnGap | number | 4 |
flagWidth | number | undefined |
children | ReactNode | required |
HelpScreen.Section
| Prop | Type | Default |
|---|---|---|
label | string | required |
labelColor | string | undefined |
children | ReactNode | required |
HelpScreen.Row
| Prop | Type | Default |
|---|---|---|
flag | string | required |
description | string | required |
flagColor | string | undefined |
descriptionColor | string | undefined |