Also pass the href property

This commit is contained in:
nickfiacco-bolt 2020-12-04 16:43:50 -08:00
parent e6f2c6870a
commit 5cba2f7256

View File

@ -28,6 +28,7 @@ const Button: React.FC<ButtonProps> = forwardRef((props, buttonRef) => {
children,
active,
onClick,
href,
width,
Component = 'button',
loading = false,
@ -53,6 +54,7 @@ const Button: React.FC<ButtonProps> = forwardRef((props, buttonRef) => {
ref={mergeRefs([ref, buttonRef])}
className={rootClassName}
onClick={onClick}
href={href}
disabled={disabled}
style={{
width,