Nana Plays Minesweeper

    @react-querybuilder/bulma
    TypeScript icon, indicating that this package has built-in type declarations

    4.5.1 • Public • Published

    @react-querybuilder/bulma

    Official react-querybuilder components for Bulma.

    To see them in action, check out the react-querybuilder demo or load the example in CodeSandbox.

    Installation

    npm i --save react-querybuilder @react-querybuilder/bulma bulma
    # OR
    yarn add react-querybuilder @react-querybuilder/bulma bulma

    Usage

    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;
    }

    Keywords

    none

    Install

    npm i @react-querybuilder/bulma

    DownloadsWeekly Downloads

    15

    Version

    4.5.1

    License

    MIT

    Unpacked Size

    39.4 kB

    Total Files

    14

    Last publish

    Collaborators

    • jakeboone02