Add Indicator component for displaying status

This commit is contained in:
Natxo
2026-03-31 12:17:39 +02:00
committed by GitHub
parent 862422ae42
commit d8ede614ac

View File

@@ -0,0 +1,9 @@
import { $html } from "sigpro";
import { joinClass } from "../core/utils.js";
/** INDICATOR */
export const Indicator = (props, children) =>
$html("div", { class: joinClass("indicator", props.class) }, [
children,
$html("span", { class: joinClass("indicator-item badge", props.badgeClass) }, props.badge),
]);