MtCheckbox component allows users to toggle between checked and unchecked states.
Import
Props
v-model binding for the checkbox value.
A label for the checkbox.
The name of the input field when submitting a form.
Toggles the disabled state of the checkbox.
Deprecated: Use
v-model instead. Determines the checked state of the checkbox.Determines if the field is partially checked (indeterminate state).
Determines if the field is surrounded by a border.
Marks the field as required with an asterisk.
Help text with additional information for the field.
Error object for this field.
Determines if the field is inherited.
Inherited value from another SalesChannel.
Events
Emitted when the checkbox value changes.
Deprecated: Use
update:modelValue instead.Emitted when inheritance is removed.
Emitted when inheritance is restored.
Slots
Custom label content.
Usage
Basic Checkbox
Checkbox with Help Text
Bordered Checkbox
Indeterminate State
Accessibility
- Uses native checkbox input with proper ARIA attributes
- Label is clickable and associated with input via
forattribute - Disabled state prevents interaction and changes cursor
- Focus visible outline for keyboard navigation
- Required fields marked with asterisk