@react-querybuilder/mantine v7.2.1
@react-querybuilder/mantine
Official react-querybuilder components for Mantine.
To see them in action, check out the react-querybuilder
demo or load the example in CodeSandbox.
Installation
npm i react-querybuilder @react-querybuilder/mantine @mantine/core @mantine/hooks
# OR yarn add / pnpm add / bun add
Usage
To render Mantine-compatible components in the query builder, wrap the <QueryBuilder />
element in <QueryBuilderMantine />
.
import { QueryBuilderMantine } from '@react-querybuilder/mantine';
import { QueryBuilder, RuleGroupType } from 'react-querybuilder';
const fields = [
{ name: 'firstName', label: 'First Name' },
{ name: 'lastName', label: 'Last Name' },
];
const App = () => {
const [query, setQuery] = useState<RuleGroupType>({ combinator: 'and', rules: [] });
return (
<QueryBuilderMantine>
<QueryBuilder fields={fields} query={query} onQueryChange={setQuery} />
</QueryBuilderMantine>
);
};
Notes
- This package exports
mantineControlElements
which can be assigned directly to thecontrolElements
prop on<QueryBuilder />
(and also exports each component individually), but wrapping<QueryBuilder />
in<QueryBuilderMantine />
is the recommended method.
5 days ago
26 days ago
1 month ago
2 months ago
2 months ago
2 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
4 months ago
4 months ago
4 months ago
5 months ago
5 months ago
6 months ago
6 months ago
6 months ago
9 months ago
7 months ago
6 months ago
7 months ago
11 months ago
1 year ago
11 months ago
12 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago