This commit is contained in:
2026-04-01 00:07:13 +02:00
parent a05216b992
commit c451c3a1f6
6 changed files with 7 additions and 7 deletions

View File

@@ -4,7 +4,7 @@ import { val, joinClass } from "../core/utils.js";
/** STAT */
export const Stat = (props) =>
$html("div", { ...props, class: joinClass("stat", props.class) }, [
props.icon && $html("div", { class: "stat-figure text-secondary" }, props.icon),
props.icon && $html("img", { src: props.icon }),
props.label && $html("div", { class: "stat-title" }, props.label),
$html("div", { class: "stat-value" }, () => val(props.value) ?? props.value),
props.desc && $html("div", { class: "stat-desc" }, props.desc),