UNPKG

native-base

Version:

Essential cross-platform UI components for React Native

27 lines (24 loc) 447 B
import { mode } from '../tools'; // TextField const baseStyle = (props: Record<string, any>) => { return { _errorMessageProps: { mt: 1, ml: 3, fontSize: 'xs', color: 'error.400', }, _helperTextProps: { mt: 1, ml: 3, fontSize: 'xs', color: mode('muted.400', 'muted.500')(props), }, }; }; export const TextField = { baseStyle, defaultProps: { component: 'input', }, };