
Product
Introducing Socket Fix for Safe, Automated Dependency Upgrades
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
@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 --save react-querybuilder @react-querybuilder/bulma bulma
# OR
yarn add react-querybuilder @react-querybuilder/bulma bulma
import { bulmaControlElements } from '@react-querybuilder/bulma';
import { QueryBuilder, RuleGroupType } from 'react-querybuilder';
import 'bulma/bulma.sass';
const fields = [
{ name: 'firstName', label: 'First Name' },
{ name: 'lastName', label: 'Last Name' },
];
const App = () => {
const [query, setQuery] = useState<RuleGroupType>({ combinator: 'and', rules: [] });
return (
<QueryBuilder
fields={fields}
query={query}
onQueryChange={q => setQuery(q)}
controlElements={bulmaControlElements}
/>
);
};
Some additional styling may be necessary, e.g.:
.queryBuilder .input {
width: auto;
}
[v4.5.2] - 2022-08-19
formatQuery
generates JSON.parse
-able strings ("mongodb" and "json_without_ids" formats).parse*
import methods properly handle backslashes.moment
package is no longer included in the build for @react-querybuilder/antd
.operator
of "between"/"notBetween" and either valueSource: "field"
or valueEditorType: "select"
, the default ValueEditor
will display two drop-down lists. The values of the drop-down lists will be joined with a comma when the rule's value
property is updated.<QueryBuilder />
called listsAsArrays
. This prop works in a similar manner to the parse*
option of the same name. When the prop is true
, ValueEditor
(and ValueSelector
for multiple: true
) will store lists of values, including "between" value pairs, as proper arrays instead of comma-separated strings.
{ field: "f1", operator: "between", value: "f2,f3", valueSource: "field" }
listsAsArrays
format:
{ field: "f1", operator: "between", value: ["f2", "f3"], valueSource: "field" }
FAQs
Custom Bulma components for react-querybuilder
The npm package @react-querybuilder/bulma receives a total of 111 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.
Product
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
Product
We’re excited to announce a powerful new capability in Socket: historical data and enhanced analytics.