Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
@cjmaio/react-querybuilder-material
Advanced tools
Custom MUI (Material Design) components for react-querybuilder
Official react-querybuilder components for MUI/Material Design.
To see them in action, check out the react-querybuilder
demo or load the example in CodeSandbox.
npm i --save react-querybuilder @react-querybuilder/material @mui/icons-material @mui/material
# OR
yarn add react-querybuilder @react-querybuilder/material @mui/icons-material @mui/material
To render MUI-compatible components in the query builder, wrap the <QueryBuilder />
element in <QueryBuilderMaterial />
.
import { createTheme, ThemeProvider } from '@mui/material/styles';
import { QueryBuilderMaterial } from '@react-querybuilder/material';
import { QueryBuilder, RuleGroupType } from 'react-querybuilder';
const muiTheme = createTheme();
const fields = [
{ name: 'firstName', label: 'First Name' },
{ name: 'lastName', label: 'Last Name' },
];
const App = () => {
const [query, setQuery] = useState<RuleGroupType>({ combinator: 'and', rules: [] });
return (
<ThemeProvider theme={muiTheme}>
<QueryBuilderMaterial>
<QueryBuilder fields={fields} query={query} onQueryChange={q => setQuery(q)} />
</QueryBuilderMaterial>
</ThemeProvider>
);
};
materialControlElements
which can be assigned directly to the controlElements
prop on <QueryBuilder />
(and also exports each component individually), but wrapping <QueryBuilder />
in <QueryBuilderMaterial />
is the recommended method.FAQs
Custom MUI (Material Design) components for react-querybuilder
The npm package @cjmaio/react-querybuilder-material receives a total of 0 weekly downloads. As such, @cjmaio/react-querybuilder-material popularity was classified as not popular.
We found that @cjmaio/react-querybuilder-material demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.