aboutsummaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/Button.tsx12
1 files changed, 12 insertions, 0 deletions
diff --git a/components/Button.tsx b/components/Button.tsx
new file mode 100644
index 0000000..909d380
--- /dev/null
+++ b/components/Button.tsx
@@ -0,0 +1,12 @@
+import { JSX } from "preact";
+import { IS_BROWSER } from "$fresh/runtime.ts";
+
+export function Button(props: JSX.HTMLAttributes<HTMLButtonElement>) {
+ return (
+ <button
+ {...props}
+ disabled={!IS_BROWSER || props.disabled}
+ class="px-2 py-1 border(gray-100 2) hover:bg-gray-200"
+ />
+ );
+}