diff options
author | Indrajith K L | 2023-05-13 11:17:27 +0530 |
---|---|---|
committer | Indrajith K L | 2023-05-13 11:17:27 +0530 |
commit | fc0064f6a0ed4c66a726a93786f7e1bb39bcfe80 (patch) | |
tree | c5b65cd636abe4f367cc0c36ca20ca21a8ad080a /components/Button.tsx | |
download | package-analyzer-fc0064f6a0ed4c66a726a93786f7e1bb39bcfe80.tar.gz package-analyzer-fc0064f6a0ed4c66a726a93786f7e1bb39bcfe80.tar.bz2 package-analyzer-fc0064f6a0ed4c66a726a93786f7e1bb39bcfe80.zip |
Initial Commit
* Implements Basic Routing and API
* Implements Package.json file select and json parse
* Displays Project Name, Version & Desc from the package.json
* Fetch all package details using npm registry API and map it based on package name
Diffstat (limited to 'components/Button.tsx')
-rw-r--r-- | components/Button.tsx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/components/Button.tsx b/components/Button.tsx new file mode 100644 index 0000000..0d10b4b --- /dev/null +++ b/components/Button.tsx @@ -0,0 +1,11 @@ +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} + /> + ); +} |