1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2025-09-19 02:02:13 +02:00
Files
foris-js/src/bootstrap/Checkbox.md
2025-04-22 13:49:31 +02:00

18 lines
422 B
Markdown

Checkbox with label Bootstrap component with predefined sizes and structure for
using in foris forms.
All additional `props` are passed to the `<input type="checkbox">` HTML
component.
```jsx
import { useState } from "react";
const [value, setValue] = useState(false);
<CheckBox
value={value}
label="Some label"
helpText="Read the small text!"
onChange={(event) => setValue(event.target.value)}
/>;
```