Component packs › Ferro › Ferro Button
Ferrofluid coats the button and grows sharp spikes that lean toward the cursor; press it and they stand up all round.
Ferro Button is a button from Ferro, a component pack with 7 components: Components that behave like magnets. Price: $5 for the whole pack.
Built with: spiked outline, lean to cursor, press burst.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | Button text. | |
width | number | 220 | Width in px. Default 220. |
height | number | 64 | Height in px. Default 64. |
onPress | () => void | Called on click. | |
autoplay | boolean | Showcase mode: a ghost cursor circles the button until touched. |
readonly element: HTMLButtonElementdestroy(): voidimport FerroButton from './FerroButton';
<FerroButton />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Micro-interactions.