import React from "react";
import { Label } from "../components/Label";
import { Switch } from "../components/Switch";
import { Toaster, useToast } from "../components/Toast";
export default {
title: "React/Switch",
};
export const Default = () => ;
export const Disabled = () => ;
export const DisabledChecked = () => ;
export const WithLabel = () => (
);
export const Controlled = () => {
const [checked, setChecked] = React.useState(false);
const { toast } = useToast();
React.useEffect(() => {
toast({
title: "Switch changed",
description: `The switch was changed to ${checked ? "true" : "false"}`,
});
}, [checked, toast]);
return (
<>
>
);
};