File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
/* eslint-disable @typescript-eslint/no-empty-object-type */
2
2
import React from 'react' ;
3
3
import styled from '@mui/system/styled' ;
4
+ import type { MUIStyledCommonProps } from '@mui/system' ;
4
5
import { Flex , type FlexAllProps , type FlexComponentProps } from 'reflexy/styled' ;
5
6
import type { GetOverridedKeys } from '../types/local' ;
6
7
import type { CSSProperties } from '../theme' ;
@@ -25,7 +26,8 @@ export interface ButtonStyleProps {
25
26
}
26
27
27
28
export type ButtonProps < C extends React . ElementType = 'button' > = FlexAllProps < C > &
28
- ButtonStyleProps ;
29
+ ButtonStyleProps &
30
+ Pick < MUIStyledCommonProps , 'sx' > ;
29
31
30
32
// function excludeHoverRules<T extends AnyObject | undefined>(rules: T): T {
31
33
// if (rules == null) return rules;
@@ -300,5 +302,5 @@ const Root = styled(
300
302
export default function Button < C extends React . ElementType = 'button' > (
301
303
props : ButtonProps < C >
302
304
) : React . JSX . Element {
303
- return < Root { ...( props as any ) } /> ;
305
+ return < Root { ...props } /> ;
304
306
}
You can’t perform that action at this time.
0 commit comments