coral-ui
Version:
Biblioteca de components criada pelo Design System para os produtos da Pulse criada em react-native
23 lines (22 loc) • 806 B
TypeScript
import { KeyboardTypeOptions, ReturnKeyTypeOptions } from 'react-native';
import { ITheme } from '../../themes/interface';
import { InputProps } from '../Input/interfaces';
declare type TextFieldProps = {
variant: 'small' | 'medium';
} & Partial<{
label: string;
assistiveText: string;
placeholder: string;
status: 'success' | 'error' | undefined;
value: string;
keyboardType: KeyboardTypeOptions;
autoCapitalize: 'none' | 'sentences' | 'words' | 'characters' | undefined;
returnKeyType: ReturnKeyTypeOptions;
}> & InputProps;
declare type TypeVariantHeight = {
[index: string]: Custom.HeightComponent;
};
declare type ColorOptions = {
[index: string]: keyof ITheme['colors'];
};
export { TextFieldProps, TypeVariantHeight, ColorOptions };