vibran

Copy to clipboard icon

Portuguese name: Botão de copiar

A copy to clipboard icon that copies the text in data-texto with one click. The icon turns into a checkmark that draws itself, a "Copiado" message appears, and everything resets after 1.6 seconds.

Preview of Copy to clipboard icon running live
Copy the promptAdjust colors and speed

When to use it

A compact version for copying a coupon, a Pix key, a tracking code or an invite link. Since it's icon-only, it needs a clear aria-label and the copied text visible next to it. Change data-aviso to something specific ("Coupon copied") and set --icone-copiar-ok to your success color.

How to add it to your site

  1. Copy the prompt in the gallery. It comes with the effect's name and the full code. The prompt text is written in Portuguese, and AI builders handle that fine.
  2. Paste it into your AI: Lovable, Claude, Cursor, Bolt or v0.
  3. Done: the AI adds the effect to your project, just like you saw it here.

Use it in HTML

The effect is plain JavaScript, no library. Just put the data-efeito attribute on the element:

<button data-efeito="icone-copiar" data-texto="BEMVINDO10" aria-label="Copiar cupom"></button>

Sites that use this effect

More icons effects

All 6 icons effects →