feat(one_shot): some deno boilerplate

This commit is contained in:
rvcas
2023-03-10 12:43:53 -05:00
committed by Lucas
parent 7ea8aeda01
commit ab1ee17ad4
20 changed files with 385 additions and 60 deletions

View File

@@ -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"
/>
);
}