
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.3.1] - 2022-05-21
operatorSelector
components will now need to accommodate OptionGroup<NameLabelPair>[]
in addition to the normal NameLabelPair[]
.autoSelectOperator
(documentation) behaves like autoSelectField
but for the operator selector.
fields
and operators
properties of the translations
prop object now accept placeholderName
, placeholderLabel
, and placeholderGroupLabel
properties (documentation). These translatable strings set the default field and operator values and labels when autoSelectField
and/or autoSelectOperator
are set to false
.formatQuery
, which will now ignore rules where the field
or operator
match the placeholder values for most export formats.parseSQL
. Examples:SQL
</th> <th>Generated RuleType
object
"lastName LIKE firstName || '%'"
{
"field": "lastName",
"operator": "beginsWith",
"value": "firstName",
"valueSource": "field"
}
</td>
</tr>
<tr>
<td>
"lastName NOT LIKE '%' || firstName || '%'"
{
"field": "lastName",
"operator": "doesNotContain",
"value": "firstName",
"valueSource": "field"
}
</td>
</tr>
</table>
react-querybuilder
and the compatibility packages are all built with React v18 now (the peerDependencies
version is still ">=16.8.0"
). Previous 4.x versions were usable within React 18 applications, but now the build and tests explicitly use it.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.