diff --git a/components/select/select.tsx b/components/select/select.tsx index b1ee94c44..74eb4365a 100644 --- a/components/select/select.tsx +++ b/components/select/select.tsx @@ -53,7 +53,8 @@ const defaultProps = { } type NativeAttrs = Omit, keyof Props> -export type SelectProps = Props & NativeAttrs +export type SelectProps = React.PropsWithChildren +type SelectPropsWithDefault = SelectProps & typeof defaultProps const Select = forwardRef>( ( @@ -75,7 +76,7 @@ const Select = forwardRef>( dropdownStyle, disableMatchWidth, ...props - }: React.PropsWithChildren, + }: SelectPropsWithDefault, ref: RefObject, ) => { const theme = useTheme()