Skip to content
On this page

Switch

js
import Switch from "@/components/Switch";

const Example = () => {
  const [checked, setChecked] = useState(false);
  return (
    <div>
      <Switch
        label="Active Switch"
        value={checked}
        onChange={() => setChecked(!checked)}
      />
    </div>
  );
};

COPYRIGHT © 2022 Codeshaper, All rights reserved.