import { $, html } from "sigpro"; $.component( "c-radio", (props, { emit }) => { return html` props.name()} .value=${() => props.value()} .class=${() => `radio ${props.ui() ?? ""}`} .disabled=${() => props.disabled()} .checked=${() => props.checked()} @change=${(e) => { if (e.target.checked) emit("change", props.value()); }} /> ${() => props.label() ? html` ${() => props.label()} ` : ""} `; }, ["checked", "name", "label", "ui", "disabled", "value"], );