Component packs › Coil › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | "Launch" | Text on the face. Default "Launch". |
disabled | boolean | ||
onPress | () => void |
press(): void: Presses and releases it as a person would.destroy(): voidimport CoilButton from './CoilButton';
<CoilButton />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Buttons.