Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork293
The Query Builder component for React
License
react-querybuilder/react-querybuilder
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
React Query Builder is a fully customizable query builder component for React, along with a collection of utility functions forimporting from, andexporting to, various query languages like SQL, MongoDB, and more. Demo ishere.
Complete documentation is available atreact-querybuilder.js.org.
To get started, import the main component and the default stylesheet, then render the component in your app:
import{QueryBuilder}from'react-querybuilder';import'react-querybuilder/dist/query-builder.css';// or .scssexportfunctionApp(){const[query,setQuery]=useState({combinator:'and',rules:[],});return<QueryBuilderdefaultQuery={query}onQueryChange={setQuery}/>;}
For a more complete introduction, see themain package README, dive into thefull documentation, or browse theexample projects.
To enable drag-and-drop functionality, use@react-querybuilder/dnd
.
For enhanced date/time support, use@react-querybuilder/datetime
.
For instructions on migrating from earlier versions ofreact-querybuilder
,click here.
In addition to the mainreact-querybuilder
package, this repo also hosts official compatibility component packages for use with several popular style libraries includingAnt Design,Bootstrap,Bulma,Chakra UI,Fluent UI,Mantine,MUI, andTremor. AReact Native component is also available.
Seethe contribution guidelines.
This component was inspired by prior work from:
Thanks goes to these wonderful people (emoji key):
This project follows theall-contributors specification. Contributions of any kind welcome!
About
The Query Builder component for React
Topics
Resources
License
Code of conduct
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.