UNPKG

@coko/client

Version:

Client side common code for coko apps

13 lines (12 loc) 623 B
import React, { ComponentProps } from 'react'; import { Input as AntInput } from 'antd'; type InputProps = Omit<ComponentProps<typeof AntInput>, 'onChange'> & { /** optional icon for reveal/hide password */ passwordIconRender?: ((visible: boolean) => React.ReactNode) | null; /** Handle change. First argument is the incoming `value`. */ onChange?: ((value: string) => void) | null; /** Define type of input. For other valid html input types, we have created separate components (eg. TextArea). */ type?: string; }; declare const Input: (props: InputProps) => React.ReactNode; export default Input;