import * as React from 'react'; import { OverridableComponent, OverridableTypeMap, OverrideProps } from '@mui/types'; import { CreateSlotsAndSlotProps, SlotCommonProps, SlotProps } from '../types/slot'; export type ListItemButtonSlot = 'root'; export interface ListItemButtonSlots { /** * The component that renders the root. * @default 'div' */ root?: React.ElementType; } export type ListItemButtonSlotsAndSlotProps = CreateSlotsAndSlotProps; }>; export interface ListItemButtonTypeMap

{ props: P & { /** * A ref for imperative actions. It currently only supports `focusVisible()` action. */ action?: React.Ref<{ focusVisible(): void; }>; /** * If `true`, the list item is 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. */ children?: React.ReactNode; /** * If `true`, the component is disabled. * @default false */ disabled?: boolean; /** * This prop can help identify which element has keyboard focus. * The class name will be applied when the element gains the focus through keyboard interaction. */ focusVisibleClassName?: string; /** * The content direction flow. * @default 'horizontal' */ orientation?: 'horizontal' | 'vertical'; /** * If `true`, the component is selected. * @default false */ selected?: boolean; /** * @default 0 */ tabIndex?: NonNullable['tabIndex']>; } & ListItemButtonSlotsAndSlotProps; defaultComponent: D; } export interface ExtendListItemButtonTypeMap { props: M['props'] & ListItemButtonTypeMap['props']; defaultComponent: M['defaultComponent']; } export type ListItemButtonProps = OverrideProps, D>; export interface ListItemButtonOwnerState extends ListItemButtonProps { /** * If `true`, the element's focus is visible. */ focusVisible?: boolean; /** * If `true`, the element is rendered in a horizontal list. * @internal */ row?: boolean; /** * @internal * The internal prop for controlling CSS margin of the element. */ 'data-first-child'?: boolean; } export type ExtendListItemButton = ((props: OverrideProps, 'a'>) => React.JSX.Element) & OverridableComponent>;