Component packs › Rime › Fogged Button

Fogged Button

Your pointer wipes the frosted pane clear in a soft streak, and the frost creeps back in from the edges of the wipe.

Fogged Button is a button from Rime, a component pack with 6 ice controls: Controls made of ice: frost that grows, panes that crack and water that freezes. Price: $2 for the whole pack.

Built with: wipe mask, edge-first regrowth, press clears the pane.

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.

Fogged Button props

PropTypeDefaultDescription
labelstring
widthnumber220Width in px. Default 220.
onClick() => void
regrownumber2.4Seconds the frost takes to grow back. Default 2.4.
autoplaynumber | falseShowcase mode: a fingertip wipes across every N ms.

Methods on the ref

Use it in React

import FoggedButton from './FoggedButton';

<FoggedButton />

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

More in Rime

Good for: Toggle switches, Loaders and progress, Physics UI components.