Component packs › Rime › Frost Switch

Frost Switch

Switch it on and frost crystals grow in from the rim of the track until they meet; switch it off and they melt into running beads.

Frost Switch is a toggle 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: branching crystal growth, ice cube thumb, melt to droplets.

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.

Frost Switch props

PropTypeDefaultDescription
checkedboolean
disabledboolean
labelstring
sizenumberScale factor. 1 = 104 × 44 px.
seednumberSeed for the crystal pattern.
onChange(checked: boolean) => void
autoplaynumber | false

Methods on the ref

Use it in React

import FrostSwitch from './FrostSwitch';

<FrostSwitch />

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.