react-ui89
Version:
A collection of React components that mimic a common style of user interfaces from the late 80s and early 90s.
21 lines (20 loc) • 712 B
TypeScript
import React from "react";
import "../style/input-box.css";
export interface Ui89InputSelectMultiTagPropsRenderOption<T> {
option: T;
index: number;
}
export interface Ui89InputSelectMultiTagProps<T> {
value: T[];
onChange?: (value: T[]) => void;
options: T[];
getValueKey?: (row: T) => string;
renderOption?: (props: Ui89InputSelectMultiTagPropsRenderOption<T>) => React.ReactNode;
renderTag?: (option: T) => React.ReactNode;
placeholder?: string;
maxHeight?: string;
optionHeight?: number;
search?: boolean;
onSearch?: (search: string) => void;
}
export declare function Ui89InputSelectMultiTag<T>(props: Ui89InputSelectMultiTagProps<T>): React.JSX.Element;