Skip to main content

Checkbox

Checkbox(props): Element

Checkbox component with optional label text

Parameters​

props​

CheckboxProps

CheckboxProps

Based on Checkbox

Returns​

Element

Example​

function MyComponent() {
const [isChecked, setIsChecked] = useState(false);

return (
<Checkbox text="Accept terms and conditions" checked={isChecked} onCheckedChange={setIsChecked}/>
);
}