@lonli-lokli/dynamic-forms-mui
Version:
Material UI 5 theme, fields and widgets for react-jsonschema-form
12 lines • 619 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import Grid2 from '@mui/material/Grid2/index.js';
/** Renders a `GridTemplate` for mui, which is expecting the column sizing information coming in via the
* extra props provided by the caller, which are spread directly on the `Grid2`.
*
* @param props - The GridTemplateProps, including the extra props containing the mui grid positioning details
*/
export default function GridTemplate(props) {
const { children, column, ...rest } = props;
return (_jsx(Grid2, { container: !column, ...rest, children: children }));
}
//# sourceMappingURL=GridTemplate.js.map