Skip to main content

FlexibleOption<N>

FlexibleOption<N>: WithUnknownIndex<RequireAtLeastOne <BaseOption<N>, "name" | "value">>

A generic Option with either a name or value as its primary identifier. OptionList-type props on the QueryBuilder component accept this type, but corresponding props passed down to subcomponents will always be translated to FullOption first.

Type parameters

Type parameterValue
N extends stringstring

Source

packages/react-querybuilder/src/types/options.ts:54


caution

API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.