@up-group-ui/react-controls
Version:
Up shared react controls
18 lines (17 loc) • 657 B
TypeScript
import { BaseControlProps } from './BaseControl';
import { IconName } from '../../../../Common/theming/icons';
export declare type WidthSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'fill';
export declare type HeightSize = 'normal' | 'large';
export interface CommonInputTextProps<VT> extends BaseControlProps<VT> {
placeholder?: string;
height?: HeightSize;
width?: WidthSize;
hasError?: boolean;
maxLength?: number;
floatingLabel?: string;
onFocus?: (e: any) => void;
onBlur?: (e: any) => void;
}
export interface CommonInputTextWithIconProps<VT> extends CommonInputTextProps<VT> {
iconName?: IconName;
}