@react-awesome-query-builder/material
v6.6.4-alpha.0
Published
User-friendly query builder for React. Material-UI 4 widgets
Downloads
1,031
Maintainers
Readme
@react-awesome-query-builder/material
This packages provides Material-UI v4 widgets (deprecated)
Installation
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
Usage
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;
// <<<