Checkbox is an extension to standard checkbox element with theming.
Binary checkbox is used as a controlled input with v-model and binary properties.
Multiple checkboxes can be grouped together.
Checkboxes can be generated using a list of values.
Invalid state is displayed using the invalid prop to indicate a failed validation. You can use this style when integrating with form validation libraries.
Specify the variant property as filled to display the component with a higher visual emphasis than the default outlined style.
When disabled is present, the element cannot be edited and focused.
Checkbox component uses a hidden native checkbox element internally that is only visible to screen readers. Value to describe the component can either be provided via label tag combined with inputId prop or using aria-labelledby, aria-label props.
Key | Function |
---|---|
tab | Moves focus to the checkbox. |
space | Toggles the checked state. |