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
31 lines (30 loc) • 927 B
TypeScript
/// <reference types="react" />
import { TextStyle } from 'react-native';
import { TextProps } from '../../components/text';
import { ColorType, ValidationMessagePosition } from './types';
export interface LabelProps {
/**
* Field label
*/
label?: string;
/**
* Field label color. Either a string or color by state map ({default, focus, error, disabled})
*/
labelColor?: ColorType;
/**
* Custom style for the field label
*/
labelStyle?: TextStyle;
/**
* Pass extra props to the label Text element
*/
labelProps?: TextProps;
validationMessagePosition?: ValidationMessagePosition;
floatingPlaceholder?: boolean;
testID?: string;
}
declare const Label: {
({ label, labelColor, labelStyle, labelProps, validationMessagePosition, floatingPlaceholder, testID }: LabelProps): JSX.Element | null;
displayName: string;
};
export default Label;