# j-Checkbox

> j-Checkbox options: required, label, disabled, checkicon, reverse

Framework: jcomponent20
Product: jComponent 20 (jcomponent@20)
Language: en
Content-SHA256: 4f41c404c48d787b0546211c2343ec82152968f7ebb48820ef16aa8230b23271
Snapshot: c0700e321579725c5cf4f5ace1ad7d2866d1b4f93c24a63c0b41b6b7998e976c
Sources: components@910ed1a86f6e72b4f031d3ad0dc7844f9fc5cb8e
Review: not-recorded

__Configuration__:

- `required` {Boolean} optional, enables "required" (default: `false`)
- `label` {String} optional, label (default is HTML content)
- `disabled` {Boolean} optional, disables this component
- `checkicon` {String} optional, a check icon without `fa-` (default: `check`)
- `reverse` {Boolean} optional, enables reverse behaviour (default: `false`)

Use it with `<ui-component name="checkbox">`. When the component is not loaded yet, jComponent downloads it on first use from the address in `DEF.fallback` (the Componentator CDN by default). Author: Peter Širka. Source: the Componentator components repository, MIT license.

```html example.html
<ui-component name="checkbox" path="form.newsletter">I want to receive a newsletter</ui-component>
<ui-component name="checkbox" path="form.terms">I agree with terms and conditions</ui-component>

<script>
	var form = {};
	form.terms = false;
	form.newsletter = true;
</script>
```
