UNPKG

react-country-state-city

Version:

A lightweight and easy-to-use React library that provides a comprehensive list of regions or continents, countries, states, cities languages, and country phone codes for creating dynamic and searchable dropdowns. Ideal for building forms and input fields

15 lines (14 loc) 645 B
import React, { ChangeEvent, InputHTMLAttributes } from "react"; import { Language } from "../types"; type PageProps = InputHTMLAttributes<HTMLInputElement> & { defaultValue?: Language; containerClassName?: string; inputClassName?: string; onChange?: (e: Language) => void; onTextChange?: (e: ChangeEvent<HTMLInputElement>) => void; placeHolder?: string; displayNative?: boolean; src?: string; }; declare const LanguageSelect: ({ containerClassName, inputClassName, onTextChange, defaultValue, onChange, placeHolder, displayNative, src, ...props }: PageProps) => React.JSX.Element; export default LanguageSelect;