import { CreateSlotsAndSlotProps, SlotCommonProps, SlotProps } from '../types/slot'; import { OverridableStringUnion, OverrideProps } from '@mui/types'; export type ListSlot = 'root'; export interface ListSlots { /** * The component that renders the root. * @default 'ul' */ root?: React.ElementType; } export type ListSlotsAndSlotProps = CreateSlotsAndSlotProps; }>; export interface ListPropsSizeOverrides { } export interface ListTypeMap

{ props: P & ListSlotsAndSlotProps & { /** * The `density` attribute for the ListItem * @default 'standard' */ density?: OverridableStringUnion<'standard' | 'compact' | 'comfortable', ListPropsSizeOverrides>; /** * The component orientation. * @default 'vertical' */ orientation?: 'horizontal' | 'vertical'; /** * Only for horizontal list. * If `true`, the list sets the flex-wrap to "wrap" and adjust margin to have gap-like behavior (will move to `gap` in the future). * * @default false */ wrap?: boolean; }; defaultComponent: D; } export type ListProps = OverrideProps, D>; export interface ListOwnerState extends ListProps { /** * @internal * If `true`, the element is rendered in a nested list item. */ nesting?: boolean | string; }