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/MenuItem.tsx | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 src/components/MenuItem.tsx

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

diff --git a/src/components/MenuItem.tsx b/src/components/MenuItem.tsx
new file mode 100644
index 0000000..04c04c7
--- /dev/null
+++ b/src/components/MenuItem.tsx
@@ -0,0 +1,17 @@
+import Button from './Button.tsx';
+import './MenuItem.css';
+
+export interface MenuItemProps {
+	label: string;
+	onClick?: (event: PointerEvent) => void;
+}
+
+const MenuItem = ({ label, onClick }: MenuItemProps) => {
+	return (
+		<li class="__MenuItem">
+			<Button kind="ghost" onClick={onClick}>{label}</Button>
+		</li>
+	);
+};
+
+export default MenuItem;
\ No newline at end of file
-- 
cgit v1.2.3

