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