Command
Display shell commands with one-click copy. Perfect for installation snippets and quick-start guides.
pnpm dlx nachui listInstallation
pnpm dlx nachui add commandAnatomy
Examples
Default
pnpm dlx nachui listAPI Reference
CliCommand
| Prop | Type | Default | Description |
|---|---|---|---|
command | string | — | The CLI command string to display and copy to clipboard. |
prefix | string | "$" | Symbol displayed before the command (e.g. $, >, %). |
resetDelay | number | 2000 | Milliseconds before the copied state resets back to the copy icon. |
onCopied | () => void | — | Callback fired after the command is successfully copied. |
className | string | — | Additional CSS class names applied to the root element. |
Found something to improve?
Notice a bug, typo, or missing detail on this page? Help us make the documentation better by opening a GitHub issue.