formik_typescript_ui
Version:
[](https://www.npmjs.com/package/formik_typescript_ui) [](https://github.com/RominaManzano/formik_typescript_ui/blob/master/LICEN
22 lines (21 loc) • 661 B
TypeScript
import React from 'react';
import { FieldProps } from 'formik';
import Option from './OptionType';
export interface SelectProps {
autoFocus?: boolean;
className?: string | null;
id?: string | null;
isDisabled?: boolean;
isLoading?: boolean;
isMulti?: boolean;
isSearchable?: boolean;
name: string;
options: Option[];
placeholder?: string | null;
style?: object;
}
export declare type RenderSelect = (props: FieldProps) => React.ReactNode;
export declare type GetValue = () => any;
export declare type HandleChange = (option: any) => void;
declare const SelectField: React.FC<SelectProps>;
export default SelectField;