Add Navbar component with styling and props
This commit is contained in:
6
src/components/Navbar.js
Normal file
6
src/components/Navbar.js
Normal 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);
|
||||||
Reference in New Issue
Block a user