dynamic-mui
v1.0.69
Published
Build dynamic forms using Material UI
Downloads
89
Readme
Build dynamic forms using Material UI
Installation
npm install @mui/material @emotion/react @emotion/styled
npm install dynamic-mui --save
##Usage
`import { FormGenerator } from 'dynamic-mui/dist-modules/components/FormGenerator'`;
export default function DynamicForm() {
return (
<FormGenerator
data={[
{
type: 'textfield',
props: {
MuiAttributes: { placeholder: 'Standard', fullWidth: true, variant: 'standard' },
},
layout: {
row: 1,
xs: 4,
sm: 4,
},
},
]}
guid="Testing"
library={MUI}
/>
);
}