diff --git a/components/MDXButton.tsx b/components/MDXButton.tsx index c2b7b7d..9d3ba7d 100644 --- a/components/MDXButton.tsx +++ b/components/MDXButton.tsx @@ -35,11 +35,12 @@ const Btn = styled.button` } `; -const MDXButton: FC = ({ +const MDXButton: FC = ({ variant = 'text', type = 'button', link, children, + disabled, className }) => { const { dark } = useContext(DarkModeContext); @@ -52,6 +53,7 @@ const MDXButton: FC = ({ onClick={() => { if (link) window.open(link, '_blank'); }} + disabled={disabled} className={className} > {children}