UNPKG

formik_typescript_ui

Version:

[![NPM](https://img.shields.io/npm/v/formik_typescript_ui.svg)](https://www.npmjs.com/package/formik_typescript_ui) [![license](https://img.shields.io/npm/l/formik_typescript_ui.svg)](https://github.com/RominaManzano/formik_typescript_ui/blob/master/LICEN

22 lines (21 loc) 661 B
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;