import { FormEvent, ReactElement } from 'react';
import { Form } from '..';
import styles from './Toggle.module.scss';
const Toggle = ({
id,
label,
value,
changeHandler,
leftChoice,
rightChoice,
name,
}: {
id: string;
label: string;
value: boolean;
changeHandler: (value: boolean) => void;
leftChoice: ReactElement | string;
rightChoice: ReactElement | string;
name?: string;
}) => {
const onSubmit = (e: FormEvent) => {
e.preventDefault();
};
return (
);
};
export default Toggle;
me='h' onchange='this.form.submit();'>
| The frontend of my personal website. | Armand Philippot |
blob: eb29569d5a36aa1c3bb72c90abca997998e738b0 (
plain)