This packages provides MUI widgets
Peer dependencies that needs to be installed:
npm i @mui/material @emotion/react @emotion/styled @mui/icons-material @mui/x-date-pickers @mui/base --save
Install:
npm i @react-query-builder-express/mui --save
Use MuiConfig
.
See minimal example in readme with modifications at top:
// >>>
import type { JsonGroup, Config, ImmutableTree, BuilderProps } from "@react-query-builder-express/mui"; // for TS example
import { Query, Builder, Utils as QbUtils } from "@react-query-builder-express/mui";
import { MuiConfig, MuiWidgets } from "@react-query-builder-express/mui";
import "@react-query-builder-express/mui/css/styles.css";
const InitialConfig = MuiConfig;
// <<<