Update new functions
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import { $html } from "sigpro";
|
||||
import { Tag } from "sigpro";
|
||||
import { val, joinClass } from "../core/utils.js";
|
||||
|
||||
/** RADIO */
|
||||
export const Radio = (props) => {
|
||||
const { label, tooltip, value, inputValue, name, ...rest } = props;
|
||||
|
||||
const radioEl = $html("input", {
|
||||
const radioEl = Tag("input", {
|
||||
...rest,
|
||||
type: "radio",
|
||||
name: name,
|
||||
@@ -18,8 +18,8 @@ export const Radio = (props) => {
|
||||
|
||||
if (!label && !tooltip) return radioEl;
|
||||
|
||||
return $html("label", { class: "label cursor-pointer justify-start gap-3" }, [
|
||||
return Tag("label", { class: "label cursor-pointer justify-start gap-3" }, [
|
||||
radioEl,
|
||||
label ? $html("span", { class: "label-text" }, label) : null,
|
||||
label ? Tag("span", { class: "label-text" }, label) : null,
|
||||
]);
|
||||
};
|
||||
Reference in New Issue
Block a user