This packages provides Material-UI v4 widgets (deprecated)
Peer dependencies that needs to be installed:
npm i @material-ui/core @material-ui/lab @material-ui/icons @material-ui/pickers --save
Install:
npm i @react-awesome-query-builder/material --save
Use MaterialConfig
.
See minimal example in readme with modifications at top:
// >>>
import type { JsonGroup, Config, ImmutableTree, BuilderProps } from '@react-awesome-query-builder/material'; // for TS example
import { Query, Builder, Utils as QbUtils } from '@react-awesome-query-builder/material';
import { MaterialConfig, MaterialWidgets } from '@react-awesome-query-builder/material';
import '@react-awesome-query-builder/material/css/styles.css';
const InitialConfig = MaterialConfig;
// <<<