Component packs › Rime › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | ||
width | number | 220 | Width in px. Default 220. |
onClick | () => void | ||
regrow | number | 2.4 | Seconds the frost takes to grow back. Default 2.4. |
autoplay | number | false | Showcase mode: a fingertip wipes across every N ms. |
destroy(): voidimport FoggedButton from './FoggedButton';
<FoggedButton />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Toggle switches, Loaders and progress, Physics UI components.