mirror of
https://github.com/vercel/commerce.git
synced 2025-06-18 13:11:23 +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,
|
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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user