
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@zag-js/checkbox
Advanced tools
Core logic for the checkbox widget implemented as a state machine
Core logic for the checkbox widget implemented as a state machine
yarn add @zag-js/checkbox
# or
npm i @zag-js/checkbox
trackFormReset
activity in the machine.trackFieldsetDisabled
activity in the machine.setChecked
method to programmatically control the checkbox's state. We automatically dispatch a native event when this is done, so when used in a form, the form can detect those changes.indeterminate
key, to make it indeterminate by default. The API also exposes a setIndeterminate
method, to toggle this programmatically.view
variable of type "checked" | "unchecked" | "mixed"
so you can render parts, based on the current visual state of the checkbox. mixed
is when the checkbox is indeterminate.Yes please! See the contributing guidelines for details.
This project is licensed under the terms of the MIT license.
FAQs
Core logic for the checkbox widget implemented as a state machine
The npm package @zag-js/checkbox receives a total of 182,712 weekly downloads. As such, @zag-js/checkbox popularity was classified as popular.
We found that @zag-js/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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.