Meng To

Skeuomorphic Toggle

Component 48

About

A realistic, glossy pill-shaped on/off switch with inset shadows and a sliding label, rendered as a self-contained sandboxed widget for settings panels and dashboards.

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

Code

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

Usage.tsx

import SkeuomorphicToggle from "@/components/ui/skeuomorphic-toggle";

export default function SkeuomorphicToggleDemo() {
  return (
    <div className="flex min-h-[380px] w-full items-center justify-center bg-background p-8">
      <div className="h-24 w-64 overflow-hidden rounded-2xl">
        <SkeuomorphicToggle />
      </div>
    </div>
  );
}

More by Meng To

View all
  • Gateway Flow

    Gateway Flow

    1.8K
  • Glassmorphism CTA

    Glassmorphism CTA

    812
  • Globe Type Study

    Globe Type Study

    759
  • Particle Drift

    Particle Drift

    688
  • Generative Tree

    Generative Tree

    605
  • Topo Field

    Topo Field

    558
  • Dot Border Button

    Dot Border Button

    505
  • Spark Badge

    Spark Badge

    470

Explore more

Part of ThreeUI — browse the full library on 21st.dev.