![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@react-querybuilder/material
Advanced tools
Custom MUI (Material Design) components for react-querybuilder
Official react-querybuilder compatibility package for MUI/Material Design.
npm i react-querybuilder @react-querybuilder/material @mui/icons-material @mui/material
# OR yarn add / pnpm add / bun add
To configure the query builder to use Material-compatible components, place QueryBuilderMaterial
above QueryBuilder
and beneath MaterialProvider
in the component hierarchy.
import { createTheme, ThemeProvider } from '@mui/material/styles';
import { QueryBuilderMaterial } from '@react-querybuilder/material';
import { useState } from 'react';
import { type Field, QueryBuilder, type RuleGroupType } from 'react-querybuilder';
const muiTheme = createTheme();
const fields: Field[] = [
{ name: 'firstName', label: 'First Name' },
{ name: 'lastName', label: 'Last Name' },
];
export function App() {
const [query, setQuery] = useState<RuleGroupType>({ combinator: 'and', rules: [] });
return (
<ThemeProvider theme={muiTheme}>
<QueryBuilderMaterial>
<QueryBuilder fields={fields} defaultQuery={query} onQueryChange={setQuery} />
</QueryBuilderMaterial>
</ThemeProvider>
);
}
QueryBuilderMaterial
is a React context provider that assigns the following props to all descendant QueryBuilder
elements. The props can be overridden on the QueryBuilder
or used directly without the context provider.
Export | QueryBuilder prop |
---|---|
materialControlElements | controlElements |
materialTranslations | translations |
MaterialActionElement | controlElements.actionElement |
MaterialDragHandle | controlElements.dragHandle |
MaterialNotToggle | controlElements.notToggle |
MaterialShiftActions | controlElements.shiftActions |
MaterialValueEditor | controlElements.valueEditor |
MaterialValueSelector | controlElements.valueSelector |
[!TIP]
By default, this package uses icons from
@mui/icons-material
for button labels. To reset button labels to their default strings, usedefaultTranslations
fromreact-querybuilder
.
<QueryBuilderMaterial translations={defaultTranslations}>
[!IMPORTANT]
In environments based on React Server Components, preload the MUI components.
[v8.1.1] - 2025-01-20
formatQuery
option parseNumbers
now aligns with the corresponding QueryBuilder
prop, as long as a fields
array is also provided.AntDValueSelector
now filters on the label
property and defines options with the options
prop instead of a children
array of <Select.OptGroup>
/<Select.Option>
.isFullOptionArray
, isFlexibleOptionArray
, isFullOptionGroupArray
, isFlexibleOptionGroupArray
) are now more strict: All leaf elements must conform to the operative type, not just the first element.formatQuery
preset now sets paramPrefix: '@'
.FAQs
Custom MUI (Material Design) components for react-querybuilder
The npm package @react-querybuilder/material receives a total of 2,676 weekly downloads. As such, @react-querybuilder/material popularity was classified as popular.
We found that @react-querybuilder/material demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.