@gsretail.com/gui-core
Version:
A skeleton to create your own React component library using Rollup, TypeScript, Sass and Storybook
2 lines (1 loc) • 573 B
JavaScript
import{__rest as e,__assign as o}from"../../../node_modules/tslib/tslib.es6.js";import r from"react";import{useTheme as t,Grid as i}from"@mui/material";var a=function(a){var n=a.horizontal,m=a.columnSize,c=void 0===m?4:m,d=a.children,u=e(a,["horizontal","columnSize","children"]);t().palette;var s={horizontal:n||!1,columnSize:c};return r.createElement(l.Provider,{value:s},r.createElement(i,o({className:"page-form",container:!0},u,{style:{borderRadius:"4px",overflow:"hidden"}}),d))},l=r.createContext({horizontal:!1,columnSize:4});export{l as FormContext,a as default};