States
import { html, atom, renderApp } from 'mates';
import { Checkbox } from 'mates-ui';
const App = () => {
const checked1 = atom(false);
const checked2 = atom(true);
return () => html`<x-col gap="10px">
${Checkbox({ label: "Unchecked", atom: checked1 })}
${Checkbox({ label: "Checked", atom: checked2 })}
${Checkbox({ label: "Indeterminate", indeterminate: true })}
${Checkbox({ label: "Error state", error: true })}
${Checkbox({ label: "Disabled unchecked", disabled: true })}
${Checkbox({ label: "Disabled checked", disabled: true, checked: true })}
</x-col>`;
};
renderApp(App, document.getElementById('app'));