diff --git a/components/MDXButton.tsx b/components/MDXButton.tsx index b3882cc..c2b7b7d 100644 --- a/components/MDXButton.tsx +++ b/components/MDXButton.tsx @@ -4,6 +4,7 @@ import styled from 'styled-components'; interface Props { variant?: 'outline' | 'text' | 'action'; + type?: 'button' | 'submit'; link?: string; dark?: boolean; } @@ -36,6 +37,7 @@ const Btn = styled.button` const MDXButton: FC = ({ variant = 'text', + type = 'button', link, children, className @@ -45,6 +47,7 @@ const MDXButton: FC = ({ return ( { if (link) window.open(link, '_blank');