dynamic-mui

1.0.67 • Public • Published

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}
    />
  );
}     

Readme

Keywords

none

Package Sidebar

Install

npm i dynamic-mui

Weekly Downloads

6

Version

1.0.67

License

none

Unpacked Size

11.3 MB

Total Files

59

Last publish

Collaborators

  • dinakaran