v1.2.0

Checkbox

Checkboxes allow the user to select one or more items from a set.

Basic

<me-checkbox></me-checkbox> <me-checkbox checked></me-checkbox> <me-checkbox indeterminate></me-checkbox>

Colors

Disabled

With Label

<label style="display:flex;align-items:center;gap:4px"> <me-checkbox></me-checkbox> Accept terms and conditions </label>

API

AttributeTypeDefaultDescription
checkedbooleanfalseWhether the checkbox is checked.
indeterminatebooleanfalseIndeterminate state (overrides checked visually).
disabledbooleanfalseDisables the checkbox.
colorprimary | secondary | error | warning | info | successprimaryThe color palette to use.
valuestringonThe value submitted with the form.
namestringForm field name.
requiredbooleanfalseRequired for form validation.

Events

EventDescription
changeFired when the checked state changes.