Skip to content

Instantly share code, notes, and snippets.

@PCreations
Created September 16, 2024 19:26
Show Gist options
  • Save PCreations/8d1c0d0f3ccdb63784b381cafe8939fb to your computer and use it in GitHub Desktop.
Save PCreations/8d1c0d0f3ccdb63784b381cafe8939fb to your computer and use it in GitHub Desktop.
95de1299afa7.diff
-1,10 +1,10 @@
import * as elements from 'typed-html';
-export const Button = ({ name }: { name: string }) => {
+export const Button = ({ name, type }: { name: string; type: string }) => {
return (
<button
class="bg-blue-600 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline"
- type="submit"
+ type={type}
>
{name}
</button>
diff --git a/src/components/layout.tsx b/src/components/layout.tsx
new file mode 100644
index 0000000..d771826
--- /dev/null
+++ b/src/components/layout.tsx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment