Component packs › Thermal › Heat Button
Hold and heat builds from your finger through the button to white-hot, then it fires; let go early and it cools.
Heat Button is a button from Thermal, a component pack with 6 components: Components seen through an infrared camera. Price: $2 for the whole pack.
Built with: press and hold, spreading heat, keyboard 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 | ||
done | string | Label once fired. | |
hold | number | 1.6 | Seconds of holding to fire. Default 1.6. |
onFire | () => void | ||
autoplay | boolean | Showcase: holds by itself until touched. |
readonly element: HTMLButtonElementdestroy(): voidimport HeatButton from './HeatButton';
<HeatButton />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Loaders and progress.