UNPKG

envoc-form

Version:

Envoc form components

13 lines (12 loc) 616 B
import React from 'react'; import { InputGroupProps } from './InputGroup'; export interface IconInputGroupProps extends Omit<InputGroupProps<string | undefined | null>, 'onChange' | 'type' | 'value'> { type?: 'color' | 'email' | 'search' | 'tel' | 'text' | 'url'; /** Icon to display on the input group. */ icon: React.ReactNode; /** Text to display after the input group to give more information to the user. */ helpText?: string; } /** Input group with an icon. */ declare const IconInputGroupWithRef: React.ComponentType<IconInputGroupProps>; export default IconInputGroupWithRef;