Checkbox
Checkbox(
props):Element
Checkbox component with optional label text
Parameters
props
Based on Checkbox
Returns
Element
Example
function MyComponent() {
const [isChecked, setIsChecked] = useState(false);
return (
<Checkbox text="Accept terms and conditions" checked={isChecked} onCheckedChange={setIsChecked}/>
);
}