UNPKG

@mui/material

Version:

Material UI is an open-source React component library that implements Google's Material Design. It's comprehensive and can be used in production out of the box.

81 lines 3.42 kB
import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; // @ts-ignore import Stack from '@mui/material-pigment-css/Stack'; import composeClasses from '@mui/utils/composeClasses'; import generateUtilityClass from '@mui/utils/generateUtilityClass'; import { jsx as _jsx } from "react/jsx-runtime"; const useUtilityClasses = () => { const slots = { root: ['root'] }; return composeClasses(slots, slot => generateUtilityClass('MuiStack', slot), {}); }; /** * * Demos: * * - [Stack](https://mui.com/material-ui/react-stack/) * * API: * * - [PigmentStack API](https://mui.com/material-ui/api/pigment-stack/) */ const PigmentStack = /*#__PURE__*/React.forwardRef(function PigmentStack({ className, ...props }, ref) { const classes = useUtilityClasses(); return /*#__PURE__*/_jsx(Stack, { ref: ref, className: clsx(classes.root, className), ...props }); }); process.env.NODE_ENV !== "production" ? PigmentStack.propTypes /* remove-proptypes */ = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │ // └─────────────────────────────────────────────────────────────────────┘ /** * The content of the component. */ children: PropTypes.node, /** * @ignore */ className: PropTypes.string, /** * Defines the `flex-direction` style property. * It is applied for all screen sizes. * @default 'column' */ direction: PropTypes.oneOfType([PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), PropTypes.shape({ lg: PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), md: PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), sm: PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), xl: PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), xs: PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']) })]), /** * Add an element between each child. */ divider: PropTypes.node, /** * Defines the space between immediate children. * @default 0 */ spacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.shape({ lg: PropTypes.oneOfType([PropTypes.number, PropTypes.string]), md: PropTypes.oneOfType([PropTypes.number, PropTypes.string]), sm: PropTypes.oneOfType([PropTypes.number, PropTypes.string]), xl: PropTypes.oneOfType([PropTypes.number, PropTypes.string]), xs: PropTypes.oneOfType([PropTypes.number, PropTypes.string]) }), PropTypes.string]), /** * The system prop, which allows defining system overrides as well as additional CSS styles. */ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]) } : void 0; export default PigmentStack;