import React from "react";
import { Checkbox } from "../components/Checkbox";
import { Label } from "../components/Label";
import { Toaster, useToast } from "../components/Toast";
export default {
title: "React/Checkbox",
};
export const Default = () => {
return ;
};
export const DefaultChecked = () => {
return ;
};
export const Controlled = () => {
const [state, setState] = React.useState(false);
const { toast } = useToast();
React.useEffect(() => {
toast({
title: "Checkbox Toggled",
description: `Checkbox state changed to ${state}`,
status: state ? "success" : "error",
});
}, [state]);
return (
<>
{
setState(e.currentTarget.checked);
}}
/>
>
);
};
export const UsingWithLabel = () => {
return (
);
};
export const Disabled = () => {
return (
);
};
export const DisabledChecked = () => {
return (
);
};
export const BaseSize = () => {
return (
);
};
export const MediumSize = () => {
return (
);
};
export const LargeSize = () => {
return (
);
};