UNPKG

@react-querybuilder/material

Version:

Custom MUI (Material Design) components for react-querybuilder

8 lines (7 loc) 439 B
import type { JSX } from "react"; import type { OptionList } from "react-querybuilder"; import { isOptionGroupArray } from "react-querybuilder"; import type { RQBMaterialComponents } from "./types.mjs"; export { isOptionGroupArray }; type ToOptionsOptions = Pick<RQBMaterialComponents, "ListSubheader" | "MenuItem">; export declare const toOptions: (arr: OptionList, { ListSubheader, MenuItem }: ToOptionsOptions) => JSX.Element[] | null;