We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5473edc commit 02f83c5Copy full SHA for 02f83c5
resources/scripts/components/elements/Button.tsx
@@ -74,8 +74,7 @@ const StyledButton = styled.button<Omit<Props, 'isLoading'>>`
74
&:disabled { opacity: 0.55; cursor: default }
75
`;
76
77
-type ComponentProps = Props &
78
- Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, keyof Props>;
+type ComponentProps = Omit<JSX.IntrinsicElements['button'], 'ref' | keyof Props> & Props;
79
80
const Button: React.FC<ComponentProps> = ({ children, isLoading, ...props }) => (
81
<StyledButton {...props}>
0 commit comments