Louis Studios

Squish Switch

Component 8

About

A segmented control and switch whose thumb is a soft blob that stretches like taffy, snaps, splashes droplets and wobbles to rest as you click or drag. Hold it down and it bursts. More like this, plus a designer your coding agent can use, at studios.lou15.com/?ref=21st

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

Code

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

Usage.tsx

"use client";

import * as React from "react";
import { SquishSwitch } from "@/components/ui/squish-switch";

/** Click an option, drag a blob along its track, or hold one down for a second until it bursts. */
export default function SquishSwitchDemo() {
  return (
    <main className="relative h-screen min-h-[340px] w-full overflow-hidden" style={{ backgroundColor: "#17171a" }}>
      <SquishSwitch demo style={{ width: "100%", height: "100%" }} />
    </main>
  );
}

More by Louis Studios

View all
  • Warp Carousel

    Warp Carousel

    1.8K
  • Peak Chart

    Peak Chart

    1.4K
  • Chrome Arcs

    Chrome Arcs

    229
  • Dot Tiles

    Dot Tiles

    222
  • Glow Rocker

    Glow Rocker

    219
  • Cover Flow

    Cover Flow

    211
  • Assistant Wall

    Assistant Wall

    190
  • Market Card

    Market Card

    176