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