Copy Command

A one-line shell command with a Copy button (Button copyValue, so it shows Copied! for two seconds). Used for the Install box at the foot of a Lab project, fed by the project's Install command field in Sanity. The command never wraps mid-flag: it scrolls inside the panel on narrow screens, and the button drops below it on phones.

Default

npx --yes github:gabrielhidalgow/usability-test-mcp setup --host claude-code,codex
tsx
<CopyCommand command={project.installCommand} />

With label

Claude Code or Codex · Node 22 or later

npx --yes github:gabrielhidalgow/usability-test-mcp setup --host claude-code,codex

Props

PropTypeDefaultDescription
command*string-The shell command, shown verbatim after a muted $ prompt (not copied) and copied by the button.
labelstring-Optional caption above the command.
classNamestring-Additional classes for the panel