liquefy-ui

Liquid Switch

Forms 38

About

An animated toggle switch whose thumb squashes and stretches like liquid glass when flicked on or off.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Liquid Switch to your project and fits it to your theme.

Code

How Liquid Switch is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import { LiquidSwitch } from "@/components/ui/liquid-switch";

export default function LiquidSwitchDemo() {
  return (
    <div className="lq-provider" data-liquid-theme="dark">
      <div className="flex items-center gap-8 p-10">
        <LiquidSwitch defaultChecked label="Refraction" />
        <LiquidSwitch label="Ambient motion" />
        <LiquidSwitch disabled label="Locked" />
      </div>
    </div>
  );
}

Dependencies

More by liquefy-ui

View all
  • Liquid Select

    Liquid Select

    36
  • Liquid TextArea

    Liquid TextArea

    1
  • Liquid Pagination

    Liquid Pagination

    1

More in Forms

View all
  • Premium Auth

    Premium Auth

    593
  • Contact Form

    Contact Form

    28
  • Form

    Form

    4
  • Login 1

    Login 1

    70
  • Book A Demo 1

    Book A Demo 1

    94
  • Contact Card

    Contact Card

    1.1K
  • HeroUI Field Error

    HeroUI Field Error

    13
  • Form [react-aria-components]

    Form [react-aria-components]

    19