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.

34 lines (33 loc) 1.24 kB
import * as React from 'react'; import { OverrideProps } from '@mui/types'; import { SxProps } from '../styles/types'; import { SlotProps, CreateSlotsAndSlotProps } from '../utils/types'; export type ListItemContentSlot = 'root'; export interface ListItemContentSlots { /** * The component that renders the root. * @default 'div' */ root?: React.ElementType; } export type ListItemContentSlotsAndSlotProps = CreateSlotsAndSlotProps<ListItemContentSlots, { root: SlotProps<'div', {}, ListItemContentOwnerState>; }>; export interface ListItemContentTypeMap<P = {}, D extends React.ElementType = 'div'> { props: P & { /** * The content of the component. */ children?: React.ReactNode; /** * The system prop that allows defining system overrides as well as additional CSS styles. */ sx?: SxProps; } & ListItemContentSlotsAndSlotProps; defaultComponent: D; } export type ListItemContentProps<D extends React.ElementType = ListItemContentTypeMap['defaultComponent'], P = { component?: React.ElementType; }> = OverrideProps<ListItemContentTypeMap<P, D>, D>; export interface ListItemContentOwnerState extends ListItemContentProps { }