Skip to content
OwnlyPlans

Element

Copy Morph Button

A copy button whose icon morphs into a check and says Copied, then resets.

Remix

Preview and code

Markdown
Buttons

Install

shadcn CLI
npx shadcn@latest add https://ownlyplans.com/r/bhaskar/copy-morph-button.json

Adds the React files to components/ownlyplans/ in a project set up with shadcn and Tailwind CSS. Or copy them from the Code tab.

About

The two icons cross-fade with a small scale so the change is clear without a toast. The label update is announced to screen readers.

Your AI tool
Starter prompt

		

Download the plan