Natural language query
AI turns a plain language request into Query Builder rules and filters the grid.
AIMCP Server and Agent Skills included
Let users build filters with rules and nested AND or OR groups, then export them to SQL, MongoDB, or DataManager predicates, with drag and drop, cloning, locking, and templates. AI assistants set it up for you from the current docs.
Trusted by the world’s leading companies
Now easier with AI
Coding assistants write the setup from the current docs, and your users can describe a filter in plain language.
01For developers
The Syncfusion MCP server and Agent Skills give assistants in VS Code, Cursor, and JetBrains the current Query Builder docs and recommended patterns.
AI coding assistantMCP · Syncfusion React
Filter customers by country and order count.
search_docs“React Query Builder columns and rules” · 2 doc sections
+<QueryBuilderComponent dataSource={customers}
+ rule={initialRule} columns={[
+{ field: 'Country', label: 'Country',
+ type: 'string' },
+{ field: 'Orders', label: 'Orders',
+ type: 'number' }]} />
Documented API: columns, rule, dataSource
ResultRendered in your app
AI coding assistantMCP · Syncfusion React
Show the SQL for the current rules and reload a saved query.
search_docs“React Query Builder sql and mongodb” · 2 doc sections
+const sql =
+ qb.current?.getSqlFromRules(qb.current.getRules());
+const mongo = qb.current?.getMongoQuery();
+qb.current?.setRulesFromSql("Country = 'France' AND Orders > 10");
Documented API: getSqlFromRules, getMongoQuery, setRulesFromSql
ResultRendered in your app
AI coding assistantMCP · Syncfusion React
Filter the customers grid whenever the rules change.
search_docs“React Query Builder filter a data grid” · 2 doc sections
+ruleChange={() => {
+ const q = qb.current;
+ if (!grid.current || !q) return;
+grid.current.query = new
+ Query().where(q.getPredicate(q.getValidRules()));
}}
Documented API: ruleChange, getPredicate, getValidRules
ResultRendered in your app
AI coding assistantMCP · Syncfusion React
Let users drag rules between groups.
search_docs“React Query Builder drag and drop” · 2 doc sections
+<QueryBuilderComponent columns={columns}
+ allowDragAndDrop={true} />
Documented API: allowDragAndDrop
ResultRendered in your app
AI coding assistantMCP · Syncfusion React
Lock the region rule so users cannot edit it.
search_docs“React Query Builder lock rules and groups” · 2 doc sections
+qb.current?.lockRule('querybuilder_group0_rule1');
Documented API: lockRule
ResultRendered in your app
AI coding assistantMCP · Syncfusion React
Use a slider to pick the order count in rules.
search_docs“React Query Builder rule and value templates” · 2 doc sections
+{ field: 'Orders', label: 'Orders', type: 'number',
+ template: { create, write, destroy } }
+// write: new Slider({ min: 0, max: 50, change:
+// (e) => qb.current?.notifyChange(e.value, args.elements) })
Documented API: columns.template, notifyChange
ResultRendered in your app
AI coding assistantMCP · Syncfusion React
Filter by the city inside each customer address.
search_docs“React Query Builder complex data” · 2 doc sections
+<QueryBuilderComponent dataSource={customers}
+ separator="."
+columns={[{ field: 'Address.City', label: 'City', type: 'string' }]} />
Documented API: separator, columns
ResultRendered in your app
AI coding assistantMCP · Syncfusion React
Allow AND or OR between each pair of rules and require a value.
search_docs“React Query Builder separate connectors and validation” · 2 doc sections
+<QueryBuilderComponent columns={columns}
+ enableSeparateConnector={true}
+ allowValidation={true} />
Documented API: enableSeparateConnector, allowValidation
ResultRendered in your app
02For your users
Users type a request, and an AI service you connect builds the rules and the matching query.
AI turns a plain language request into Query Builder rules and filters the grid.
Accessibility
The React Query Builder component follows WAI-ARIA practices, with keyboard access and screen reader support.
Features in depth
Open a demo to try each one, or the docs to see the API.
Users add and delete conditions and groups, combine them with AND or OR, and negate a group with NOT when enableNotCondition is set. The maxGroupCount property limits how deep groups nest.
Columns define each field’s label, type, operators, step, and format, and sortDirection sorts the field list in ascending or descending order. With allowValidation, validateFields flags empty or out-of-range values with your messages.
Drag rules and groups to a new position, clone them next to the original, and lock them so their field, operator, and value cannot change.
Header templates customize connectors and add buttons, rule templates replace the whole rule row, and column templates swap the value editor for sliders, checkboxes, or dropdowns.
Separate connectors mix AND and OR within one group. The summary view shows the filter as readable text, and displayMode lays the builder out horizontally or vertically.
The fieldModel, operatorModel, and valueModel properties pass settings to the dropdown and input components that edit each part of a rule.
Keyboard interaction, screen reader support, WCAG 2.2, localization, and right-to-left layouts, in Tailwind 3.4, Bootstrap 5.3, Material 3, Fluent 2, and High Contrast themes, with light and dark modes, you can brand in Theme Studio.
Get started
With an AI coding assistant
Add a Syncfusion React Query Builder above my customers grid with rules for country, orders, and status, filter the grid when the rules change, and show the SQL.
By hand, in three steps
1 · Install
npm install @syncfusion/ej2-react-querybuilder @syncfusion/ej2-tailwind3-theme --save
2 · src/App.css
@import '../node_modules/@syncfusion/ej2-tailwind3-theme/styles/query-builder/index.css';
3 · src/App.tsx
import { QueryBuilderComponent } from '@syncfusion/ej2-react-querybuilder';
import './App.css';
const customers = [
{ CustomerID: 1001, Country: 'USA', Orders: 24 },
{ CustomerID: 1002, Country: 'France', Orders: 8 }
];
export default function App() {
return (
<QueryBuilderComponent dataSource={customers} columns={[{ field: 'Country', label: 'Country', type: 'string' }, { field: 'Orders', label: 'Orders', type: 'number' }]} />
);
}
Works withReact 15.5.4 or laterTypeScript and JavaScriptNext.jsRemixGatsbyVitePreactSystem requirements
Customer reviews
“Awesome, enough said”
Easy usability, solving real-life problems, easy to implement. Most of the cases have the operators and settings possibilities you need right away.
“A giant framework with great pricing options”
I have loved the components and options that Syncfusion has; besides, its documentation, demos, and support are excellent.
Customer story · Igniatek
“I would definitely recommend Syncfusion for anyone who is trying to develop something meaningful.”
Somnath Maji, Founder, Igniatek Consultancy
Including the 2026 Devies Award, Capterra Shortlist 2026, Software Advice FrontRunners 2026, and G2 Best Software 2025.
Complete feature list
Showing all 29 features. Each one opens its demo or documentation.
No feature matches that search. Try another word, or open the Query Builder demos.
Related data components:React Data GridReact Pivot TableReact Tree Grid
Questions and answers
The Syncfusion React Query Builder lets users build filter queries visually, with rules and nested groups. You can turn the result into SQL, MongoDB queries, or Data Grid filters. Explore the demos
Install @syncfusion/ej2-react-querybuilder and the Tailwind 3 theme, then render QueryBuilderComponent with columns that describe your fields. Read the getting started guide
Call getSqlFromRules for inline SQL, or getParameterizedSql and getParameterizedNamedSql for parameterized queries. Read about import and export
Yes. Call setRules with JSON, setRulesFromSql with SQL, or setMongoQuery with a MongoDB query. Mongo and SQL demo
Pass getPredicate(getValidRules()) to a DataManager Query and assign it to the grid when ruleChange fires. Data Grid integration demo
Local JSON and remote data through a DataManager, including OData and Web API services, plus nested data with sub-fields. Read about data binding
Yes. Users drag rules between groups, clone rules and groups, and lock them to prevent changes. Lock group demo
Use column templates for value editors such as sliders, rule templates for the whole rule row, and header templates for group buttons and connectors. Read about templates
Yes. The natural language query demo sends the user’s request to an AI service, which returns rules for the builder. Natural language query demo
Yes. It follows WAI-ARIA practices and WCAG 2.2, with keyboard interaction, screen reader support, and right-to-left layouts. Read about accessibility
Yes. The Syncfusion MCP server and Agent Skills give assistants in VS Code, Cursor, and JetBrains the current Query Builder docs and recommended patterns. You need a Syncfusion API key and an active license, which can be a commercial, Community, or trial license. Set up the MCP server
It is a commercial component with a 30-day free trial. A free Community License is available for companies and individuals with less than $1 million USD in annual gross revenue, five or fewer developers, and 10 or fewer total employees. Check Community License eligibility
Resources
Query Builder for other frameworks:AngularBlazorJavaScriptVue
More React components:Data GridPivot TableForm BuilderAll 140+ React components
Syncfusion React Query Builder
The full Query Builder, the MCP server, and Agent Skills, free for 30 days.