mirror of
https://github.com/vercel/commerce.git
synced 2025-06-18 05:01:22 +00:00
Add href usage prop to Button
add href prop to Button component
This commit is contained in:
parent
c0397d6174
commit
44de4695e7
@ -33,6 +33,7 @@ const Button: React.FC<ButtonProps> = forwardRef((props, buttonRef) => {
|
||||
loading = false,
|
||||
disabled = false,
|
||||
style = {},
|
||||
href,
|
||||
} = props
|
||||
const ref = useRef<typeof Component>(null)
|
||||
|
||||
@ -48,6 +49,7 @@ const Button: React.FC<ButtonProps> = forwardRef((props, buttonRef) => {
|
||||
|
||||
return (
|
||||
<Component
|
||||
href={href}
|
||||
onClick={onClick}
|
||||
aria-pressed={active}
|
||||
data-variant={variant}
|
||||
|
Loading…
x
Reference in New Issue
Block a user