import * as React from 'react';
import CheckBox from 'vestarplus/CheckBox';
export default function BasicCheckBoxfunction() {
const [isChecked, setChecked] = useState(false);
const handleCheckboxChange = () => {
setChecked(!isChecked);
};
return (
<CheckBox label="Section 1" checked={isChecked} onChange={handleCheckboxChange} />
<CheckBox label="Section 1" checked={isChecked} onChange={handleCheckboxChange} disabled/>
);
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Checkbox Component</title>
<link rel="stylesheet" href="./index.css">
</head>
<body>
<div id="checkbox-container"></div>
</body>
</html>