UNPKG

@nestledjs/forms

Version:

A flexible React form library supporting both declarative and imperative usage patterns with TypeScript support

16 lines (15 loc) 739 B
import { SearchSelectOption } from '../form-types'; export declare function SelectedItems({ value, onChange, theme, }: { value: SearchSelectOption[]; onChange: (items: SearchSelectOption[]) => void; theme: any; }): import("react/jsx-runtime").JSX.Element; export declare function singleSelectDisplayValue(value: SearchSelectOption | null): string; export declare function multiSelectDisplayValue(value: SearchSelectOption[]): string; export declare function defaultOptionsMap<TDataItem extends { id: string; name?: string; firstName?: string; lastName?: string; }>(items: TDataItem[]): SearchSelectOption[]; export declare function getPlaceholder(field: any, selectedCount?: number, isMulti?: boolean): string;