@pagamio/frontend-commons-lib
Version:
Pagamio library for Frontend reusable components like the form engine and table container
17 lines (16 loc) • 568 B
TypeScript
import React from 'react';
import type { Field, SelectOption } from '../../form-engine';
export interface MultiSelectProps {
options: SelectOption[];
value?: string[];
defaultValue?: string[];
disabled?: boolean;
onChange?: (selected: string[]) => void;
placeholder?: string;
className?: string;
onSearch?: (value: string) => void;
field?: Field;
tagPosition?: 'inside' | 'bottom';
}
declare const MultiSelect: React.ForwardRefExoticComponent<MultiSelectProps & React.RefAttributes<HTMLDivElement>>;
export default MultiSelect;