UNPKG

@activecollab/components

Version:

ActiveCollab Components

21 lines 905 B
import React, { ReactElement, ReactNode } from "react"; import { ElementWithRef, IOptionItemProps } from "../Select"; export interface InputSelectProps { onChange: (val: string | number | (string | number)[]) => void; size: string; selected: string; options: IOptionItemProps[]; disabled?: boolean; search?: boolean; disabledInternalSort?: boolean; keepSameOptionsOrder?: boolean; selectedLabel?: ReactNode; /** Set select target element */ target?: ElementWithRef<Element>; /** Render option */ renderOption?: (option: Record<string, ReactNode>, data: Record<string, unknown>) => string | ReactElement; /** Custom filter function for additional filtering criteria */ filterCriteria?: (option: IOptionItemProps, filter: string) => boolean; } export declare const InputSelect: React.FC<InputSelectProps>; //# sourceMappingURL=InputSelect.d.ts.map