mirror of
https://github.com/vercel/commerce.git
synced 2025-06-18 05:01:22 +00:00
Also pass the href property
This commit is contained in:
parent
e6f2c6870a
commit
5cba2f7256
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user