Add information, examples, and all tools sections

This commit is contained in:
Made4Uo
2024-06-24 20:09:16 -07:00
parent 42f4d5a52b
commit 09a0e434e8
10 changed files with 482 additions and 2 deletions

View File

@@ -5,12 +5,14 @@ const CheckboxWithDesc = ({
title,
description,
checked,
onChange
onChange,
disabled
}: {
title: string;
description: string;
checked: boolean;
onChange: (value: boolean) => void;
disabled?: boolean;
}) => {
const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
onChange(event.target.checked);
@@ -20,7 +22,12 @@ const CheckboxWithDesc = ({
<Box>
<FormControlLabel
control={
<Checkbox defaultChecked checked={checked} onChange={handleChange} />
<Checkbox
defaultChecked
checked={checked}
onChange={handleChange}
disabled={disabled}
/>
}
label={title}
/>