Checkbox
A checkbox component.
- Import
import "@tapsioss/web-components/checkbox";
- Tag
<tapsi-checkbox></tapsi-checkbox>
Properties
Name | Description | Type | Default Value |
---|---|---|---|
checked | Indicates whether the checkbox is checked. | boolean | false |
indeterminate | Indicates whether the checkbox is in an indeterminate state. | boolean | false |
disabled | Indicates whether the checkbox is disabled. | boolean | false |
value | The value of the checkbox when it is checked. | string | "on" |
error | Whether the checkbox has error. | boolean | false |
label | Defines a string value that can be used to name checkbox input. https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label | string | - |
labelledby | Identifies the element (or elements) that labels the checkbox input. https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-labelledby | string | - |
required | Indicates that the user must specify a value for the input before the owning form can be submitted and will render an error state when reportValidity() is invoked when value is empty.https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/required | boolean | false |