From 9eb1625ec5de3c221ed0445dde874fcb1dc3ff48 Mon Sep 17 00:00:00 2001
From: Sam Nystrom <sam@samnystrom.dev>
Date: Wed, 13 Mar 2024 18:01:48 +0000
Subject: feat: add menu components

---
 src/components/Menu.tsx | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 src/components/Menu.tsx

(limited to 'src/components/Menu.tsx')

diff --git a/src/components/Menu.tsx b/src/components/Menu.tsx
new file mode 100644
index 0000000..e8d37cc
--- /dev/null
+++ b/src/components/Menu.tsx
@@ -0,0 +1,20 @@
+import type { ComponentChildren } from 'preact';
+import './Menu.css';
+
+export interface MenuProps {
+	children: ComponentChildren;
+	id?: string;
+	popover?: string;
+}
+
+const Menu = ({ id, popover, children }: MenuProps) => {
+	return (
+		<>
+			<menu id={id} class="__Menu" popover={popover}>
+				{children}
+			</menu>
+		</>
+	);
+};
+
+export default Menu;
-- 
cgit v1.2.3

