Component packs › Thermal › Heat Button

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.

Heat Button props

PropTypeDefaultDescription
labelstring
donestringLabel once fired.
holdnumber1.6Seconds of holding to fire. Default 1.6.
onFire() => void
autoplaybooleanShowcase: holds by itself until touched.

Methods on the ref

Use it in React

import HeatButton from './HeatButton';

<HeatButton />

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

More in Thermal

Good for: Loaders and progress.