reflexy
Version:
Flexbox layout react components
15 lines (14 loc) • 580 B
TypeScript
import React from 'react';
import type { MUIStyledCommonProps } from '@mui/system/createStyled';
import type { DefaultComponentType, FlexAllProps } from '../../Flex';
/**
* Flexbox container.
* Default style is just `display: flex;`.
* Example: `<Flex component="button" ... />`
* Example: `<Flex component={MyComponent} ... />`
*/
declare function Flex<C extends React.ElementType = DefaultComponentType>(props: FlexAllProps<C, {
inferStyleProps: true;
}> & Pick<MUIStyledCommonProps, 'theme' | 'sx'>): React.JSX.Element;
declare namespace Flex { }
export default Flex;