import * as React from 'react'; import { ExtendButtonBase } from '../ButtonBase'; import { OverridableComponent, OverrideProps } from '../OverridableComponent'; export interface ListItemTypeMap
{
props: P & {
/**
* Defines the `align-items` style property.
* @default 'center'
*/
alignItems?: 'flex-start' | 'center';
/**
* If `true`, the list item will be focused during the first mount.
* Focus will also be triggered if the value changes from false to true.
* @default false
*/
autoFocus?: boolean;
/**
* The content of the component. If a `ListItemSecondaryAction` is used it must
* be the last child.
*/
children?: React.ReactNode;
/**
* Override or extend the styles applied to the component.
*/
classes?: {
/** Styles applied to the (normally root) `component` element. May be wrapped by a `container`. */
root?: string;
/** Styles applied to the `container` element if `children` includes `ListItemSecondaryAction`. */
container?: string;
/** Pseudo-class applied to the `component`'s `focusVisibleClassName` prop if `button={true}`. */
focusVisible?: string;
/** Styles applied to the `component` element if dense. */
dense?: string;
/** Styles applied to the `component` element if `alignItems="flex-start"`. */
alignItemsFlexStart?: string;
/** Pseudo-class applied to the inner `component` element if `disabled={true}`. */
disabled?: string;
/** Styles applied to the inner `component` element if `divider={true}`. */
divider?: string;
/** Styles applied to the inner `component` element unless `disableGutters={true}`. */
gutters?: string;
/** Styles applied to the inner `component` element if `button={true}`. */
button?: string;
/** Styles applied to the `component` element if `children` includes `ListItemSecondaryAction`. */
secondaryAction?: string;
/** Pseudo-class applied to the root element if `selected={true}`. */
selected?: string;
};
/**
* The container component used when a `ListItemSecondaryAction` is the last child.
* @default 'li'
*/
ContainerComponent?: React.ElementType ,
D
>;
export default ListItem;