UNPKG

@mui/joy

Version:

Joy UI is an open-source React component library that implements MUI's own design principles. It's comprehensive and can be used in production out of the box.

28 lines (27 loc) 984 B
import * as React from 'react'; import { OverrideProps } from '@mui/types'; import { GridBaseProps } from '@mui/system/Unstable_Grid'; import { SxProps, SystemProps } from '../styles/types'; import { SlotProps, CreateSlotsAndSlotProps } from '../utils/types'; export type GridSlot = 'root'; export interface GridSlots { /** * The component that renders the root. * @default 'div' */ root?: React.ElementType; } export type GridSlotsAndSlotProps = CreateSlotsAndSlotProps<GridSlots, { root: SlotProps<'div', {}, GridOwnerState>; }>; export interface GridTypeMap<P = {}, D extends React.ElementType = 'div'> { props: P & GridBaseProps & GridSlotsAndSlotProps & { sx?: SxProps; } & SystemProps; defaultComponent: D; } export type GridProps<D extends React.ElementType = GridTypeMap['defaultComponent'], P = { component?: React.ElementType; }> = OverrideProps<GridTypeMap<P, D>, D>; export interface GridOwnerState extends GridProps { }