import * as React from 'react'; import { OverrideProps } from '@mui/types'; import { ResponsiveStyleValue, SystemProps } from '@mui/system'; import { SlotCommonProps } from '../types/slot'; import { Theme } from '../styles'; export interface StackOwnProps extends SystemProps { /** * The content of the component. */ children?: React.ReactNode; /** * Defines the `flex-direction` style property. * It is applied for all screen sizes. * @default 'column' */ direction?: ResponsiveStyleValue<'row' | 'row-reverse' | 'column' | 'column-reverse'>; /** * Defines the space between immediate children. * @default 0 */ spacing?: ResponsiveStyleValue; /** * Add an element between each child. */ divider?: React.ReactNode; /** * If `true`, the CSS flexbox `gap` is used instead of applying `margin` to children. * @default false */ useFlexGap?: boolean; } export interface StackTypeMap

extends SystemProps { props: P & StackOwnProps & Pick; defaultComponent: D; } export type StackProps = OverrideProps, D>;