diff --git a/components/ui/Button/Button.tsx b/components/ui/Button/Button.tsx index b415592bb..cf24e94d9 100644 --- a/components/ui/Button/Button.tsx +++ b/components/ui/Button/Button.tsx @@ -27,12 +27,12 @@ const Button: React.FC = forwardRef((props, buttonRef) => { variant = 'flat', children, active, - onClick, width, Component = 'button', loading = false, disabled = false, style = {}, + ...rest } = props const ref = useRef(null) @@ -57,7 +57,7 @@ const Button: React.FC = forwardRef((props, buttonRef) => { width, ...style, }} - onClick={onClick} + {...rest} > {children} {loading && (