Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.

Commit fd84fde

Browse files
committed
fix: custom tag Button to support all props
1 parent 31cf3e7 commit fd84fde

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/components/Button/Button.tsx

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
import React, {
2-
forwardRef,
3-
useRef,
4-
useImperativeHandle,
5-
useContext,
6-
} from 'react'
1+
import React, { forwardRef, useRef, useImperativeHandle } from 'react'
72
import { IconContext } from '../Icon/IconContext'
83
import { IconLoader } from '../Icon/icons/IconLoader'
94

@@ -151,6 +146,7 @@ const Button = forwardRef<RefHandle, ButtonProps>(
151146
if (as) {
152147
return (
153148
<CustomButton
149+
{...props}
154150
className={classes.join(' ')}
155151
onClick={onClick}
156152
style={style}

0 commit comments

Comments
 (0)