Add Navbar component with styling and props

This commit is contained in:
Natxo
2026-03-31 12:16:09 +02:00
committed by GitHub
parent c7fb374f38
commit 5797e3cea5

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

@@ -0,0 +1,6 @@
import { $html } from "sigpro";
import { joinClass } from "../core/utils.js";
/** NAVBAR */
export const Navbar = (props, children) =>
$html("div", { ...props, class: joinClass("navbar bg-base-100 shadow-sm px-4", props.class) }, children);