UNPKG

baseui

Version:

A React Component library implementing the Base design language

23 lines (22 loc) 784 B
/// <reference types="react" /> import type { Option, Value } from '../types'; type defaultProps = { filterOption: ((option: Option, filterValue: string) => boolean) | undefined | null; ignoreCase: boolean; labelKey: string; matchPos: 'any' | 'start'; matchProp: 'any' | 'label' | 'value'; trimFilter: boolean; valueKey: string; }; declare const defaultProps: defaultProps; declare const filterOptions: (options: Value, filterValue: string, excludeOptions?: Value | null, newProps?: Partial<defaultProps> | null) => Readonly<{ [x: string]: any; id?: string | number; label?: import("react").ReactNode; disabled?: boolean; clearableValue?: boolean; isCreatable?: boolean; __optgroup?: string; }>[]; export default filterOptions;