Add Stack component for rendering stacked elements

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

6
src/components/Stack.js Normal file
View File

@@ -0,0 +1,6 @@
import { $html } from "sigpro";
import { joinClass } from "../core/utils.js";
/** STACK */
export const Stack = (props, children) =>
$html("div", { ...props, class: joinClass("stack", props.class) }, children);