Liquid Toggle
Liquid Toggle: A toggle with a liquid/blob-like transition. The internal shape deforms organically as it travels from off to on — stretching along the travel axis and settling into a natural blob shape rather than simply translating. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.
Install Liquid Toggle
npx motion-ui-skill add liquid-toggleComponents install as source into your project. The interactive page also includes preview, code, documentation and install tabs.
Dependencies
clsxmotionreacttailwind-merge
Source files
Liquid Toggle
A toggle with a liquid/blob-like transition. The internal shape deforms organically as it travels from off to on — stretching along the travel axis and settling into a natural blob shape rather than simply translating.
Install
npx motion-ui-skill add liquid-toggle
Dependencies
clsxmotionreacttailwind-merge
Usage
"use client";
import { LiquidToggle as LiquidToggle } from "@/components/craft/liquid-toggle";
export function Example() {
return (
<div className="p-6">
<LiquidToggle />
</div>
);
}