Add Stack component for rendering stacked elements
This commit is contained in:
6
src/components/Stack.js
Normal file
6
src/components/Stack.js
Normal 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);
|
||||
Reference in New Issue
Block a user