Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@react-querybuilder/bulma
Advanced tools
Official react-querybuilder compatibility package for Bulma.
npm i react-querybuilder @react-querybuilder/bulma bulma
# OR yarn add / pnpm add / bun add
To configure the query builder to use Bulma-compatible components, place QueryBuilderBulma
above QueryBuilder
in the component hierarchy.
import { QueryBuilderBulma } from '@react-querybuilder/bulma';
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 (
<QueryBuilderBulma>
<QueryBuilder fields={fields} defaultQuery={query} onQueryChange={setQuery} />
</QueryBuilderBulma>
);
}
[!NOTE]
Some additional styling may be necessary. We recommend the following:
.queryBuilder .input { width: auto; }
QueryBuilderBulma
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 |
---|---|
bulmaControlClassnames | controlClassnames |
bulmaControlElements | controlElements |
BulmaNotToggle | controlElements.notToggle |
BulmaValueEditor | controlElements.valueEditor |
BulmaValueSelector | controlElements.valueSelector |
[v8.0.0] - 2024-11-08
@react-querybuilder/chakra
now supports Chakra UI version 3 and no longer supports version 2. For Chakra UI version 2 support, use @react-querybuilder/chakra2
.ChakraDragHandle
has been removed. In Chakra UI version 3 environments, the default DragHandle
component works without augmentation."react-querybuilder"
imports to "react-querybuilder/debug"
.bootstrapClassnames
no longer includes value: "form-control form-control-sm"
. The classes are added by BootstrapValueEditor
only when necessary.@react-querybuilder/bulma
properly indicates compatibility with Bulma v1 in its peerDependencies
, and the website demo now uses Bulma v1.FAQs
Custom Bulma components for react-querybuilder
The npm package @react-querybuilder/bulma receives a total of 136 weekly downloads. As such, @react-querybuilder/bulma popularity was classified as not popular.
We found that @react-querybuilder/bulma 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.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.