New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@react-querybuilder/mantine

Package Overview
Dependencies
Maintainers
1
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-querybuilder/mantine

Custom Mantine components for react-querybuilder

Source
npmnpm
Version
8.11.1
Version published
Maintainers
1
Created
Source

@react-querybuilder/mantine

Official react-querybuilder compatibility package for Mantine.

Screenshot

Installation

npm i react-querybuilder @react-querybuilder/mantine @mantine/core @mantine/dates @mantine/hooks
# OR yarn add / pnpm add / bun add

Usage

To configure the query builder to use Mantine-compatible components, place QueryBuilderMantine above QueryBuilder in the component hierarchy.

import { QueryBuilderMantine } from '@react-querybuilder/mantine';
import { useState } from 'react';
import { type Field, QueryBuilder, type RuleGroupType } from 'react-querybuilder';

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 (
    <QueryBuilderMantine>
      <QueryBuilder fields={fields} defaultQuery={query} onQueryChange={setQuery} />
    </QueryBuilderMantine>
  );
}

QueryBuilderMantine 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.

ExportQueryBuilder prop
mantineControlElementscontrolElements
MantineActionElementcontrolElements.actionElement
MantineNotTogglecontrolElements.notToggle
MantineShiftActionscontrolElements.shiftActions
MantineValueEditorcontrolElements.valueEditor
MantineValueSelectorcontrolElements.valueSelector

Keywords

react

FAQs

Package last updated on 23 Oct 2025

Did you know?

Socket

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.

Install

Related posts