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-toggle

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • motion
  • react
  • tailwind-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

  • clsx
  • motion
  • react
  • tailwind-merge

Usage

"use client";

import { LiquidToggle as LiquidToggle } from "@/components/craft/liquid-toggle";

export function Example() {
  return (
    <div className="p-6">
      <LiquidToggle />
    </div>
  );
}

Browse this category