@y14e/parent-checkbox
v1.0.10
Published
WAI-ARIA compliant checkbox (mixed) pattern implementation in TypeScript
Maintainers
Readme
Parent Checkbox
WAI-ARIA compliant checkbox (mixed) pattern implementation in TypeScript.
Install
npm i @y14e/parent-checkbox// npm
import ParentCheckbox from '@y14e/parent-checkbox';
// CDNs
import ParentCheckbox from 'https://esm.sh/@y14e/[email protected]';
// or
import ParentCheckbox from 'https://cdn.jsdelivr.net/npm/@y14e/[email protected]/+esm';
// or
import ParentCheckbox from 'https://esm.unpkg.com/@y14e/[email protected]';Usage
new ParentCheckbox(root);
// => ParentCheckbox
//
// root: HTMLInputElement📦 APIs
destroy
Destroys the instance and cleans up all event listeners.
checkbox.destroy();
// => voidDemo
https://y14e.github.io/parent-checkbox/
