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

    31
  • Area Chart

    Area Chart

    16
  • Table

    Table

    16
  • Popover

    Popover

    14
  • Bar Chart

    Bar Chart

    4
  • Line Chart

    Line Chart

  • Badge

    Badge

  • Tooltip

    Tooltip

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