ls-deno/components/Button.tsx

12 lines
251 B
TypeScript
Raw Normal View History

2022-09-27 14:41:17 -05: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}
/>
);
}