Component packs › Ferro › Ferro Button

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.

Ferro Button props

PropTypeDefaultDescription
labelstringButton text.
widthnumber220Width in px. Default 220.
heightnumber64Height in px. Default 64.
onPress() => voidCalled on click.
autoplaybooleanShowcase mode: a ghost cursor circles the button until touched.

Methods on the ref

Use it in React

import FerroButton from './FerroButton';

<FerroButton />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Ferro

Good for: Micro-interactions.