react-native-ui-lib
Version:
<p align="center"> <img src="https://user-images.githubusercontent.com/1780255/105469025-56759000-5ca0-11eb-993d-3568c1fd54f4.png" height="250px" style="display:block"/> </p> <p align="center">UI Toolset & Components Library for React Native</p> <p a
30 lines (29 loc) • 983 B
TypeScript
/// <reference types="react" />
import { TextStyle, StyleProp } from 'react-native';
import { ColorType, ValidationMessagePosition } from './types';
export interface FloatingPlaceholderProps {
/**
* The placeholder for the field
*/
placeholder?: string;
/**
* The floating placeholder color
*/
floatingPlaceholderColor?: ColorType;
/**
* Custom style to pass to the floating placeholder
*/
floatingPlaceholderStyle?: StyleProp<TextStyle>;
/**
* Should placeholder float on focus or when start typing
*/
floatOnFocus?: boolean;
validationMessagePosition?: ValidationMessagePosition;
extraOffset?: number;
testID: string;
}
declare const FloatingPlaceholder: {
({ placeholder, floatingPlaceholderColor, floatingPlaceholderStyle, floatOnFocus, validationMessagePosition, extraOffset, testID }: FloatingPlaceholderProps): JSX.Element;
displayName: string;
};
export default FloatingPlaceholder;