retroui

Switch

Forms

About

A neobrutalist on/off toggle switch with thick borders and a hard-edged thumb, including a disabled state, for settings and forms.

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

Code

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

Usage.tsx

"use client";

import { Switch } from "@/components/ui/switch-style-disabled";
import React from "react";

export default function SwitchStyleDisabled() {
  return (
    <div className="flex items-center space-x-2">
      <Switch id="notification" disabled />
    </div>
  );
}

Dependencies

More by retroui

View all
  • Menu

    Menu

    22
  • Table

    Table

    12
  • Area Chart

    Area Chart

    9
  • Popover

    Popover

    8
  • Bar Chart

    Bar Chart

    1
  • Line Chart

    Line Chart

  • Badge

    Badge

  • Tooltip

    Tooltip

More in Forms

View all
  • Premium Auth

    Premium Auth

    500
  • Login 1

    Login 1

    52
  • Authentication Card

    Authentication Card

    47
  • Book A Demo 3

    Book A Demo 3

    83
  • Book A Demo 1

    Book A Demo 1

    69
  • Contact Card

    Contact Card

    1K
  • Login Card

    Login Card

    32
  • Login 2

    Login 2

    7