Update new functions
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// components/Indicator.js
|
||||
import { $html } from "../sigpro.js";
|
||||
import { Tag } from "../sigpro.js";
|
||||
import { ui } from "../core/utils.js";
|
||||
|
||||
/**
|
||||
@@ -15,12 +15,12 @@ import { ui } from "../core/utils.js";
|
||||
export const Indicator = (props, children) => {
|
||||
const { value, class: className, ...rest } = props;
|
||||
|
||||
return $html("div", {
|
||||
return Tag("div", {
|
||||
...rest,
|
||||
class: "indicator"
|
||||
}, () => [
|
||||
// El indicador debe ir PRIMERO (antes que el children)
|
||||
value ? $html("span", {
|
||||
value ? Tag("span", {
|
||||
class: ui('indicator-item badge', className)
|
||||
}, () => typeof value === "function" ? value() : value) : null,
|
||||
children
|
||||
|
||||
Reference in New Issue
Block a user