States
import { html, atom, renderApp } from 'mates';
import { Radio } from 'mates-ui';
const App = () => {
const selected = atom("b");
return () => html`<x-col gap="10px">
${Radio({ label: "Option A", name: "demo", value: "a", atom: selected })}
${Radio({ label: "Option B", name: "demo", value: "b", atom: selected })}
${Radio({ label: "Option C", name: "demo", value: "c", atom: selected })}
${Radio({ label: "Disabled", name: "dis", disabled: true })}
${Radio({ label: "Disabled checked", name: "dis-chk", disabled: true, checked: true })}
${Radio({ label: "Error", name: "err", error: true })}
</x-col>`;
};
renderApp(App, document.getElementById('app'));