# CopyCommand

<!-- https://uncage.vercel.app/docs/api/react-ui/functions/copycommand/ -->

```ts
function CopyCommand(__namedParameters): Element;
```

Defined in: react-ui/src/components/CopyCommand.tsx:37

A one-line shell command in a mono block with a copy button: "Copied" for 2 s, or (no clipboard
access) "Copy failed — select the text"; the command text selects with one click.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `__namedParameters` | \{ `command`: `string`; \} |
| `__namedParameters.command` | `string` |

## Returns

`Element`
