
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@m3e/checkbox
Advanced tools
The m3e-checkbox component enables users to select one or more options from a set. It supports selected, unselected, and indeterminate states, and communicates selection through visual cues and accessible semantics. This component reflects user intent, form participation, and validation feedback, adapting to disabled and required contexts. It emits input and change events to signal state transitions and integrates with form submission via name and value.
This package is part of M3E monorepo, a unified suite of Material 3 web components. Explore the docs to see them in action.
npm install @m3e/checkbox
This package includes a Custom Elements Manifest to support enhanced editor tooling and developer experience.
To enable autocomplete and hover documentation for @m3e/checkbox, install the Custom Elements Manifest Language Server extension. It will automatically detect the manifest bundled with this package and surface tag names, attributes, slots, and events in supported files.
Alternately, you can explicitly reference the html-custom-data.json and css-custom-data.json in your workspace settings:
{
"html.customData": ["./node_modules/@m3e/checkbox/dist/html-custom-data.json"],
"css.customData": ["./node_modules/@m3e/checkbox/dist/css-custom-data.json"]
}
This package uses JavaScript Modules. To use it directly in a browser without a bundler, use a module script similar to the following.
<script type="module" src="/node_modules/@m3e/checkbox/dist/index.js"></script>
In addition, you must use an import map to include dependencies.
<script type="importmap">
{
"imports": {
"lit": "https://cdn.jsdelivr.net/npm/lit@3.3.0/+esm",
"@m3e/core": "/node_modules/@m3e/core/dist/index.js"
}
}
</script>
For production, use index.min.js for faster load times.
m3e-checkbox — A checkbox that allows a user to select one or more options from a limited number of choices.The following example illustrates wrapping a m3e-checkbox within a label.
<label>
<m3e-checkbox></m3e-checkbox>
Checkbox label
</label>
The next example illustrates use of the for attribute to label a checkbox.
<m3e-checkbox id="chk"></m3e-checkbox><label for="chk">Checkbox label </label>
This section details the attributes, events and CSS custom properties available for the m3e-checkbox component.
| Attribute | Type | Default | Description |
|---|---|---|---|
checked | boolean | false | Whether the element is checked. |
disabled | boolean | false | Whether the element is disabled. |
indeterminate | boolean | false | Whether the element's checked state is indeterminate. |
name | string | The name that identifies the element when submitting the associated form. | |
required | boolean | false | Whether the element is required. |
value | string | "on" | A string representing the value of the checkbox. |
| Event | Description |
|---|---|
input | Emitted when the checked state changes. |
change | Emitted when the checked state changes. |
| Property | Description |
|---|---|
--m3e-checkbox-icon-size | Size of the checkbox icon inside the container. |
--m3e-checkbox-container-size | Base size of the checkbox container. |
--m3e-checkbox-container-shape | Border radius of the icon container. |
--m3e-checkbox-unselected-outline-thickness | Border thickness for unselected state. |
--m3e-checkbox-unselected-outline-color | Border color for unselected state. |
--m3e-checkbox-unselected-hover-outline-color | Border color on hover when unselected. |
--m3e-checkbox-unselected-disabled-outline-color | Base color for disabled unselected outline. |
--m3e-checkbox-unselected-disabled-outline-opacity | Opacity for disabled unselected outline. |
--m3e-checkbox-unselected-error-outline-color | Border color for invalid unselected state. |
--m3e-checkbox-selected-container-color | Background color for selected container. |
--m3e-checkbox-selected-icon-color | Icon color for selected state. |
--m3e-checkbox-selected-disabled-container-color | Base color for disabled selected container. |
--m3e-checkbox-selected-disabled-container-opacity | Opacity for disabled selected container. |
--m3e-checkbox-selected-disabled-icon-color | Base color for disabled selected icon. |
--m3e-checkbox-selected-disabled-icon-opacity | Opacity for disabled selected icon. |
--m3e-checkbox-unselected-hover-color | Ripple hover color for unselected state. |
--m3e-checkbox-unselected-focus-color | Ripple focus color for unselected state. |
--m3e-checkbox-unselected-ripple-color | Ripple base color for unselected state. |
--m3e-checkbox-selected-hover-color | Ripple hover color for selected state. |
--m3e-checkbox-selected-focus-color | Ripple focus color for selected state. |
--m3e-checkbox-selected-ripple-color | Ripple base color for selected state. |
--m3e-checkbox-unselected-error-hover-color | Ripple hover color for invalid unselected state. |
--m3e-checkbox-unselected-error-focus-color | Ripple focus color for invalid unselected state. |
--m3e-checkbox-unselected-error-ripple-color | Ripple base color for invalid unselected state. |
--m3e-checkbox-selected-error-hover-color | Ripple hover color for invalid selected state. |
--m3e-checkbox-selected-error-focus-color | Ripple focus color for invalid selected state. |
--m3e-checkbox-selected-error-ripple-color | Ripple base color for invalid selected state. |
See the root monorepo CONTRIBUTING.md for guidelines on contributing to this package.
This package is licensed under the MIT License.
FAQs
Checkbox for M3E
We found that @m3e/checkbox demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.