Skip to content

Commit

Permalink
add types
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp committed Nov 11, 2022
1 parent a56ecbc commit 4d356d2
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion packages/grid/x-data-grid/src/models/gridSlotsComponentsProps.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,38 @@
import { SxProps } from '@mui/system';

export interface BaseTextFieldSlotProps {
id?: string;
fullWidth?: boolean;
label?: string;
children?: React.ReactNode;
placeholder?: string;
inputRef?: React.RefObject<HTMLInputElement>;
value?: any;
onChange?: React.ChangeEventHandler<any>;
variant?: 'outlined' | 'standard';
type: string;
InputProps?: {
startAdornment?: React.ReactNode;
endAdornment?: React.ReactNode;
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
};
InputLabelProps?: {
shrink?: boolean;
};
select?: boolean;
SelectProps?: {
native?: boolean;
displayEmpty?: boolean;
};
sx?: SxProps<any>;
}

/**
* Overrideable components props dynamically passed to the component at rendering.
*/
export interface GridSlotsComponentsProps {
baseCheckbox?: any;
baseTextField?: any;
baseTextField?: BaseTextFieldSlotProps;
baseFormControl?: any;
baseSelect?: any;
baseSwitch?: any;
Expand Down

0 comments on commit 4d356d2

Please sign in to comment.