Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
@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 59,417 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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.