UNPKG

@coveord/plasma-mantine

Version:

A Plasma flavoured Mantine theme

33 lines (32 loc) 1.06 kB
import { jsx as _jsx } from "react/jsx-runtime"; import { useProps, useStyles } from '@mantine/core'; import { identity } from '../../../../utils'; import classes from './RowLayout.module.css'; import { RowLayoutBody } from './RowLayoutBody'; import { RowLayoutProvider } from './RowLayoutContext'; import { RowLayoutHeader } from './RowLayoutHeader'; import { RowLayoutIcon } from './RowLayoutIcon'; const defaultProps = {}; export const RowLayout = (props)=>{ const { children, styles, classNames, unstyled } = useProps('PlasmaRowLayout', defaultProps, props); const getStyles = useStyles({ name: 'PlasmaRowLayout', classes, props, styles, classNames, unstyled }); return /*#__PURE__*/ _jsx(RowLayoutProvider, { value: { getStyles }, children: children }); }; RowLayout.Body = RowLayoutBody; RowLayout.Header = RowLayoutHeader; RowLayout.Icon = RowLayoutIcon; RowLayout.displayName = 'Rows'; RowLayout.extend = identity; //# sourceMappingURL=RowLayout.js.map