Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@react-querybuilder/bulma
Advanced tools
Official react-querybuilder components for Bulma.
To see them in action, check out the react-querybuilder
demo or load the example in CodeSandbox.
npm i react-querybuilder @react-querybuilder/bulma bulma
# OR yarn add / pnpm add / bun add
To render Bulma-compatible components in the query builder, wrap the <QueryBuilder />
element in <QueryBuilderBulma />
.
import { QueryBuilderBulma } from '@react-querybuilder/bulma';
import 'bulma/bulma.sass';
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 (
<QueryBuilderBulma>
<QueryBuilder fields={fields} query={query} onQueryChange={setQuery} />
</QueryBuilderBulma>
);
};
Some additional styling may be necessary, e.g.:
.queryBuilder .input {
width: auto;
}
This package exports bulmaControlElements
which can be assigned directly to the controlElements
prop on <QueryBuilder />
(and also exports each component individually), but wrapping <QueryBuilder />
in <QueryBuilderBulma />
is the recommended method.
[v7.5.0] - 2024-06-15
gap
for layout spacing, which means the minimum react-native
version is now 0.71.0
.useQueryBuilder
hook has been reinstated. It does nothing more than call useQueryBuilderSetup
and useQueryBuilderSchema
, which no longer need to be called from separate components.useQueryBuilderQuery
hook to retrieve the full, current query object during the render pass of a custom component. It requires no parameters and should be used in place of the previously recommended hook useQueryBuilderSelector
, which requires a selector function generated with getQuerySelectorById(props.schema.qbId)
. While useQueryBuilderSelector
is not deprecated, it is no longer recommended except in very special circumstances.useQueryBuilderSelector
no longer returns undefined
during the first render pass (and neither does the new hook useQueryBuilderQuery
).parse*
methods properly escape commas in string values for "between" and "in" operators.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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
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.