WAI-ARIA compliant checkbox (mixed) pattern implementation in TypeScript.
npm i @y14e/parent-checkbox// npm
import ParentCheckbox from '@y14e/parent-checkbox';
// CDNs
import ParentCheckbox from 'https://esm.sh/@y14e/parent-checkbox'
// or
import ParentCheckbox from 'https://cdn.jsdelivr.net/npm/@y14e/parent-checkbox/+esm';
// or
import ParentCheckbox from 'https://unpkg.com/@y14e/parent-checkbox/dist/index.js';new ParentCheckbox(root);
// => ParentCheckbox
//
// root: HTMLInputElementDestroys the instance and cleans up all event listeners.
checkbox.destroy();
// => void