MarovStudio
Back to marketplace

Toggle Switch

Switch with proper accessibility roles

Formsformtoggleswitchbooleana11y
Code locked
"use client";

import { useState } from "react";

export function ToggleSwitch() {
  const [on, setOn] = useState(true);

  return (

Sign in to see the code

Create a free account to copy the full source, usage snippet and AI prompt of every component.

Free — no card required.