/
githubmirror
/
material-ui
Обзор
Документация
Войти
/
githubmirror
/
material-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
packages/mui-material/src/Stack/Stack.d.ts
68 строк
2 KB
Siriwat K
[core] Remove leftover Joy UI references (#48719)
25 июн 2026, 14:09
Не верифицирован
25 июн 2026, 14:09
0cc3e24
Код
Авторство
О чём код?
import * as React from 'react'; import { ResponsiveStyleValue, SxProps } from '@mui/system'; import { OverrideProps, OverridableComponent } from '../OverridableComponent'; import { Theme } from '../styles/createTheme'; export interface StackOwnProps { /** * 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'> | undefined; /** * Defines the space between immediate children. * @default 0 */ spacing?: ResponsiveStyleValue<number | string> | undefined; /** * Add an element between each child. */ divider?: React.ReactNode; /** * If `true`, the CSS flexbox `gap` is used instead of applying `margin` to children. * * While CSS `gap` removes the known limitations, * it is not fully supported in some browsers. We recommend checking https://caniuse.com/?search=flex%20gap before using this flag. * * To enable this flag globally, follow the [theme's default props](https://mui.com/material-ui/customization/theme-components/#default-props) configuration. * @default false */ useFlexGap?: boolean | undefined; /** * The system prop, which allows defining system overrides as well as additional CSS styles. */ sx?: SxProps<Theme> | undefined; } export interface StackTypeMap< AdditionalProps = {}, RootComponent extends React.ElementType = 'div', > { props: AdditionalProps & StackOwnProps; defaultComponent: RootComponent; } /** * * Demos: * * - [Stack](https://mui.com/material-ui/react-stack/) * * API: * * - [Stack API](https://mui.com/material-ui/api/stack/) */ declare const Stack: OverridableComponent<StackTypeMap>; export type StackProps< RootComponent extends React.ElementType = StackTypeMap['defaultComponent'], AdditionalProps = {}, > = OverrideProps<StackTypeMap<AdditionalProps, RootComponent>, RootComponent> & { component?: React.ElementType | undefined; }; export default Stack;