Terminal copy button
A terminal command with a blinking cursor: on press it gets selected character by character, copied and confirmed.
Settings
Code
<div class="uvq01-cli"><button class="b" type="button"><span class="ps" aria-hidden="true">$</span><code class="cm">npx aimran add hero</code><span class="cr" aria-hidden="true"></span><span class="ic" aria-hidden="true"><svg class="cp" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="8" y="8" width="12" height="12" rx="2.5"/><path d="M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2"/></svg><span class="ck"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></span></span><span class="sr">Copy</span></button><span class="ok" role="status"></span><span class="msg" hidden>Copied</span></div>Prompt for AI
Paste it into ChatGPT, Claude or Cursor and it will adapt the block to your project with these settings, even if you don’t use React.
More in Buttons
See all ButtonsWhere to use it
Install commands are often the first thing developers copy from a landing page, and this button makes that moment clear. The command sits on a dark slate pill with an amber prompt and a blinking block cursor. On click the text is highlighted in steps as if selected by hand, copied to the clipboard, the icon turns into a check and a small Copied tag is shown and announced.
Replace the label with your own command; it is copied exactly as written. The main color sets the prompt, cursor and confirmation, and the secondary color sets the background, so a light theme or a brand green are a quick change.