import { Button } from 'reablocks'; import { Dialog, useDialog } from 'reablocks'; import { Fragment, useState } from 'react'; import { Checkbox } from 'reablocks'; export default { title: 'Components/Form/Checkbox', component: Checkbox }; export const Simple = () => { const [state, setState] = useState(true); return ; }; export const WithoutLabel = () => { const [state, setState] = useState(true); return ; }; export const LabelPosition = () => { const [state, setState] = useState(true); return (
); }; export const Intermediate = () => { const [state, setState] = useState(true); return (
); }; export const States = () => { const [state, setState] = useState(true); return (
); }; export const Sizes = () => { const [state, setState] = useState(true); return (
); }; export const Disabled = () => { const [state, setState] = useState(true); const [state2, setState2] = useState(false); return ( <>
); }; export const Custom = () => { const [state, setState] = useState(true); return ( ); }; export const CustomLabel = () => { const [state, setState] = useState(true); return ( Check me } onChange={setState} /> ); }; export const WithDialog = () => { const { isOpen, setOpen } = useDialog(); const [checked, setChecked] = useState(true); return (
setOpen(false)} header="Checkbox test" > {() => (

)}
); };