musikspider/components/Button.tsx

13 lines
312 B
TypeScript
Raw Normal View History

2023-04-12 07:34:23 +03:00
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}
2023-04-12 09:47:57 +03:00
class="px-2 py-1 border(gray-100 2) hover:bg-gray-200"
2023-04-12 07:34:23 +03:00
/>
);
}