Component packs › Coil › Coil Button

Coil Button

The face stands on a real coil: it closes up under your press and rebounds past rest in damped bounces, rocking as it goes.

Coil Button is a button from Coil, a component pack with 6 spring controls: Controls on real coil springs: they compress, stretch, overshoot and settle like wire does. Price: $2 for the whole pack.

Built with: helix spring render, damped rebound, press and hold.

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.

Coil Button props

PropTypeDefaultDescription
labelstring"Launch"Text on the face. Default "Launch".
disabledboolean
onPress() => void

Methods on the ref

Use it in React

import CoilButton from './CoilButton';

<CoilButton />

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

More in Coil

Good for: Buttons.