
Research
NPM targeted by malware campaign mimicking familiar library names
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
@react-querybuilder/tremor
Advanced tools
Official react-querybuilder compatibility package for Tremor.
npm i react-querybuilder @react-querybuilder/tremor @tremor/react
# OR yarn add / pnpm add / bun add
To configure the query builder to use Tremor-compatible components, place QueryBuilderTremor
above QueryBuilder
in the component hierarchy.
import { useState } from 'react';
import { QueryBuilderTremor } from '@react-querybuilder/tremor';
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 (
<QueryBuilderTremor>
<QueryBuilder fields={fields} defaultQuery={query} onQueryChange={setQuery} />
</QueryBuilderTremor>
);
}
QueryBuilderTremor
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 |
---|---|
tremorControlElements | controlElements |
tremorControlClassnames | controlClassnames |
TremorActionElement | controlElements.actionElement |
TremorNotToggle | controlElements.notToggle |
TremorShiftActions | controlElements.shiftActions |
TremorValueEditor | controlElements.valueEditor |
TremorValueSelector | controlElements.valueSelector |
[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 Tremor components for react-querybuilder
The npm package @react-querybuilder/tremor receives a total of 50 weekly downloads. As such, @react-querybuilder/tremor popularity was classified as not popular.
We found that @react-querybuilder/tremor 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.
Research
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.