import { html, css } from '@design.estate/dees-element'; import '@design.estate/dees-wcctools/demotools'; import type { DeesInputCheckbox } from './dees-input-checkbox.js'; import './dees-button.js'; export const demoFunc = () => html` { // Get all checkboxes for demo interactions const checkboxes = elementArg.querySelectorAll('dees-input-checkbox'); // Example of programmatic interaction const selectAllBtn = elementArg.querySelector('#select-all-btn'); const clearAllBtn = elementArg.querySelector('#clear-all-btn'); if (selectAllBtn && clearAllBtn) { selectAllBtn.addEventListener('click', () => { checkboxes.forEach((checkbox: DeesInputCheckbox) => { if (!checkbox.disabled && checkbox.key?.startsWith('feature')) { checkbox.value = true; } }); }); clearAllBtn.addEventListener('click', () => { checkboxes.forEach((checkbox: DeesInputCheckbox) => { if (!checkbox.disabled && checkbox.key?.startsWith('feature')) { checkbox.value = false; } }); }); } }}> Basic Checkboxes Standard checkbox inputs for boolean selections Horizontal Layout Checkboxes arranged horizontally for compact forms Feature Selection Example Common use case for feature toggles with batch operations Select All Clear All States Different checkbox states and configurations Real-world Examples Common checkbox patterns in applications `;
Standard checkbox inputs for boolean selections
Checkboxes arranged horizontally for compact forms
Common use case for feature toggles with batch operations
Different checkbox states and configurations
Common checkbox patterns in applications