changed to new functions
All checks were successful
Deploy Docs to Synology / deploy (push) Successful in 3s
All checks were successful
Deploy Docs to Synology / deploy (push) Successful in 3s
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// components/Radio.js
|
||||
import { Tag } from "sigpro";
|
||||
import { h } from "sigpro";
|
||||
import { val, ui } from "../utils.js";
|
||||
|
||||
/**
|
||||
@@ -15,7 +15,7 @@ import { val, ui } from "../utils.js";
|
||||
export const Radio = (props) => {
|
||||
const { class: className, label, tooltip, value, inputValue, name, ...rest } = props;
|
||||
|
||||
const radioEl = Tag("input", {
|
||||
const radioEl = h("input", {
|
||||
...rest,
|
||||
type: "radio",
|
||||
name: name,
|
||||
@@ -28,10 +28,10 @@ export const Radio = (props) => {
|
||||
|
||||
if (!label && !tooltip) return radioEl;
|
||||
|
||||
const layout = Tag("label", { class: "label cursor-pointer justify-start gap-3" }, [
|
||||
const layout = h("label", { class: "label cursor-pointer justify-start gap-3" }, [
|
||||
radioEl,
|
||||
label ? Tag("span", { class: "label-text" }, label) : null,
|
||||
label ? h("span", { class: "label-text" }, label) : null,
|
||||
]);
|
||||
|
||||
return tooltip ? Tag("div", { class: "tooltip", "data-tip": tooltip }, layout) : layout;
|
||||
return tooltip ? h("div", { class: "tooltip", "data-tip": tooltip }, layout) : layout;
|
||||
};
|
||||
Reference in New Issue
Block a user