@etchemkay/react-tailwindcss-select
Version:
A select input made with React js and Tailwind CSS
16 lines (15 loc) • 502 B
TypeScript
import React from "react";
import { Option, Options as ListOption } from "./type";
interface OptionsProps {
list: ListOption;
noOptionsMessage: string;
text: string;
isMultiple: boolean;
value: Option | Option[] | null;
primaryColor: string;
filterFn?: (item: Option, searchTerm: string) => boolean;
sortResults?: (results: ListOption, searchTerm: string) => ListOption;
activeIndex?: number;
}
declare const Options: React.FC<OptionsProps>;
export default Options;