aboutsummaryrefslogtreecommitdiff
path: root/components/Button.tsx
blob: 909d38078c6720ae3830a24302fa5b7513d59fd3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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"
    />
  );
}