murad-sinatra

Toggles

Forms

About

A set of accessible native-input toggle controls — checkbox, radio/radio group, and switch — sharing one label/description/error layout for settings and forms.

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

Code

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

Usage.tsx

import { Switch } from "@/components/ui/toggles";

export default function SwitchDemo() {
  return (
    <div
      className="mors-scope flex w-full items-center justify-center p-10"
      style={{ background: "var(--mors-color-canvas)" }}
    >
      <div className="flex w-full max-w-sm flex-col gap-5">
        <Switch label="Notifications" defaultChecked />
        <Switch label="Small" size="sm" />
        <Switch
          label="Reduced motion"
          description="Limits non-essential animation."
          labelPosition="start"
        />
        <Switch label="Disabled" disabled />
        <Switch label="Disabled + on" disabled defaultChecked />
      </div>
    </div>
  );
}

More by murad-sinatra

View all
  • Table

    Table

  • Command Palette

    Command Palette

  • Icon

    Icon

  • Range Slider

    Range Slider

  • Number Field

    Number Field

More in Forms

View all
  • Premium Auth

    Premium Auth

    517
  • Contact Card

    Contact Card

    1K
  • Book A Demo 1

    Book A Demo 1

    72
  • Authentication Card

    Authentication Card

    48
  • Login 1

    Login 1

    52
  • Login Card

    Login Card

    6
  • Form

    Form

    16
  • Modern & Stunning sign in

    Modern & Stunning sign in

    1.6K