Download Button
FreeA button that narrows into a progress bar, advances at an uneven pace like a real network, and ends in a checkmark. With href, it really downloads the file.
Buttons
A copy button where the icon outline morphs into a checkmark with a stroke and spring morph. It really copies the text with navigator.clipboard (with a fallback).
Free forever
MIT license, for personal and commercial projects. See installation
npx furin add copy-morphMade with Furin: Pill Nav · Metal Button · Copy Morph
| Prop | Type | Default | Description |
|---|---|---|---|
text | string | "npx furin add copy-morph" | Text copied to the clipboard. |
label | string | "Copy" | Button text at rest. |
copiedLabel | string | "Copied" | Button text after copying. |
errorLabel | string | "Copy failed" | Button text if the copy fails. |
variant | "field" | "button" | "icon" | "field" | "field" shows the text with the button beside it; "button" shows only the button; "icon" shows only the icon. |
duration | number | 1900 | Milliseconds the checkmark stays before reverting. |
successColor | string | "#6EE0A6" | Color of the confirmation. |
onCopy | (text: string) => void | "" | Called after a successful copy. |
1Install the package
npm i furin-ui2Import it
import { CopyMorph } from "furin-ui";Also with pnpm add furin-ui, yarn add furin-ui or bun add furin-ui. Each component ships its own CSS and imports it for you.
Each file ships its own CSS: there's nothing else to install.
A button that narrows into a progress bar, advances at an uneven pace like a real network, and ends in a checkmark. With href, it really downloads the file.
Buttons
A dark button with a glint that sweeps across it every so often and on hover, lighting up the fill, the border and the text at once.
Buttons