Checkbox based off of the [WAI-ARIA authoring guidelines for the checkbox component](https://www.w3.org/TR/wai-aria-1.1/#checkbox). The checkbox is an HTMl input element with added attributes to ensure proper functionality and accessibility. The checkbox is wrapped in an `asInput` component. The `asInput` wrapper is passed the input element as well as a second parameter set to `false` to ensure that the label is placed to the right of the checkbox.
Checkbox based off of the [WAI-ARIA authoring guidelines for the checkbox component](https://www.w3.org/TR/wai-aria-1.1/#checkbox). The checkbox is an HTMl input element with added attributes to ensure proper functionality and accessibility. The checkbox is wrapped in an `asInput` component. The `asInput` wrapper is passed the input element as well as a second parameter set to `false` to ensure that the label is placed to the right of the checkbox.
The following inputs should be passed into every checkbox component:
The following parameters should be passed into every checkbox component:
*`name`: `name` attribute - type `String`
*`name` (`String`): `name` attribute
*`label`: label to be placed next to the checkbox - type `String`
*`label` (`String`): label to be placed next to the checkbox
*`checked`: `"true"` if the default state should be checked, `"false"` otherwise - type `String`
The following input can optionally be passed into a checkbox component:
The following parameters can optionally be passed into a checkbox component:
*`disabled`: `true` if the checkbox should be disabled, `false` otherwise - type `Boolean`
*`checked` (`Boolean`): `true` if the default state should be checked, `false` otherwise
*`disabled` (`Boolean`): `true` if the checkbox should be disabled, `false` otherwise
*`onChangeState`: function to be called when the checkbox changes state
*`onChangeState`: function to be called when the checkbox changes state
The implementation of the checkbox contains the following functions:
The implementation of the checkbox contains the following functions: