mirror of
https://github.com/vercel/commerce.git
synced 2025-06-18 05:01:22 +00:00
Add onClick/href props to inner Component element
This commit is contained in:
parent
3770ad7ea8
commit
eac0315406
@ -28,6 +28,7 @@ const Button: React.FC<ButtonProps> = forwardRef((props, buttonRef) => {
|
||||
children,
|
||||
active,
|
||||
onClick,
|
||||
href,
|
||||
width,
|
||||
Component = 'button',
|
||||
loading = false,
|
||||
@ -52,6 +53,8 @@ const Button: React.FC<ButtonProps> = forwardRef((props, buttonRef) => {
|
||||
data-variant={variant}
|
||||
ref={mergeRefs([ref, buttonRef])}
|
||||
className={rootClassName}
|
||||
onClick={onClick}
|
||||
href={href}
|
||||
disabled={disabled}
|
||||
style={{
|
||||
width,
|
||||
|
Loading…
x
Reference in New Issue
Block a user