@wq/material-web
Version:
Web bindings for @wq/material
31 lines (30 loc) • 745 B
JavaScript
import React from "react";
import { Form } from "formik";
import PropTypes from "prop-types";
export default function FormRoot({ children }) {
return /*#__PURE__*/ React.createElement(
"div",
{
style: {
flex: 1,
display: "flex",
justifyContent: "center",
},
},
/*#__PURE__*/ React.createElement(
Form,
{
style: {
width: "100%",
maxWidth: "70em",
padding: "1em",
boxSizing: "border-box",
},
},
children
)
);
}
FormRoot.propTypes = {
children: PropTypes.node,
};