@toyu-ui/solid
Version:
<p align="center"> <h1><span style="color: #4a90e2;">T</span><span style="color: #007aff;">Y</span>UI</h1> </p>
20 lines (19 loc) • 678 B
JavaScript
import { getOwner as v, insert as o, effect as t, template as u } from "solid-js/web";
var c = /* @__PURE__ */ u("<tyui-radio>", !0, !1, !1);
function m(i) {
return (() => {
var e = c();
return e._$owner = v(), o(e, () => i.children), t((a) => {
var r = i.disabled, d = i.labelPosition, l = i.name, n = i.required;
return r !== a.e && (e.disabled = a.e = r), d !== a.t && (e.labelposition = a.t = d), l !== a.a && (e.name = a.a = l), n !== a.o && (e.required = a.o = n), a;
}, {
e: void 0,
t: void 0,
a: void 0,
o: void 0
}), t(() => e.checked = i.checked), t(() => e.value = i.value), e;
})();
}
export {
m as Radio
};