import * as React from 'react'; import { OverridableStringUnion, OverrideProps } from '@mui/types'; import { ColorPaletteProp } from '../styles/types/colorSystem.js'; import { VariantProp } from '../styles/types/variants.js'; import { SxProps } from '../styles/types/theme.js'; import '@mui/system'; import '../styles/types/colorScheme.js'; import '../styles/types/focus.js'; import '../styles/types/shadow.js'; import '../styles/types/radius.js'; import '../styles/types/typography.js'; declare type ListSlot = "root"; interface ListPropsSizeOverrides { } interface ListPropsVariantOverrides { } interface ListPropsColorOverrides { } interface ListTypeMap

{ props: P & { /** * The content of the component. */ children?: React.ReactNode; /** * The color of the component. It supports those theme colors that make sense for this component. * @default 'neutral' */ color?: OverridableStringUnion; /** * If `true`, display the list in horizontal direction. * @default false */ row?: boolean; /** * The size of the component (affect other nested list* components). * @default 'md' */ size?: OverridableStringUnion<"sm" | "md" | "lg", ListPropsSizeOverrides>; /** * The system prop that allows defining system overrides as well as additional CSS styles. */ sx?: SxProps; /** * The variant to use. * @default 'plain' */ variant?: OverridableStringUnion; /** * 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; } declare type ListProps = OverrideProps, D>; interface ListOwnerState extends ListProps { /** * @internal * The explicit size specified on the element instance. */ instanceSize?: ListProps["size"]; /** * @internal * If `true`, the element is rendered in a nested list item. */ nesting: boolean | string; } export { ListOwnerState, ListProps, ListPropsColorOverrides, ListPropsSizeOverrides, ListPropsVariantOverrides, ListSlot, ListTypeMap };