Update new functions
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// components/Fieldset.js
|
||||
import { $html } from "../sigpro.js";
|
||||
import { Tag } from "../sigpro.js";
|
||||
import { val, ui } from "../core/utils.js";
|
||||
|
||||
/**
|
||||
@@ -13,7 +13,7 @@ import { val, ui } from "../core/utils.js";
|
||||
export const Fieldset = (props, children) => {
|
||||
const { class: className, legend, ...rest } = props;
|
||||
|
||||
return $html(
|
||||
return Tag(
|
||||
"fieldset",
|
||||
{
|
||||
...rest,
|
||||
@@ -22,7 +22,7 @@ export const Fieldset = (props, children) => {
|
||||
[
|
||||
() => {
|
||||
const legendText = val(legend);
|
||||
return legendText ? $html("legend", { class: "fieldset-legend font-bold" }, [legendText]) : null;
|
||||
return legendText ? Tag("legend", { class: "fieldset-legend font-bold" }, [legendText]) : null;
|
||||
},
|
||||
children,
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user