@crossed/ui
Version:
A universal & performant styling library for React Native, Next.js & React
43 lines • 1.23 kB
TypeScript
/**
* Copyright (c) Paymium.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root of this projects source tree.
*/
import { Text as TextNative, type TextProps as TextNativeProps } from 'react-native';
import { CrossedMethods } from '@crossed/styled';
import { fontWeightStyles, fontSizeStyles, fontColorStyles, sizeTemplateStyles } from '../styles/typography';
import { textAlignStyles } from '../styles/textAlign';
export interface TextProps extends Omit<TextNativeProps, 'style'> {
/**
* Color of text
*/
color?: keyof typeof fontColorStyles;
/**
* Extends style
*/
style?: CrossedMethods<any>;
/**
* Select font-weight
*/
weight?: keyof typeof fontWeightStyles;
/**
* select font-size
*/
fontSize?: keyof typeof fontSizeStyles;
/**
* Select size template
*/
size?: keyof typeof sizeTemplateStyles;
/**
* select text-align
*/
textAlign?: keyof typeof textAlignStyles;
/**
* Element ref
*/
ref?: React.Ref<TextNative> | undefined;
}
declare const Text: import("react").NamedExoticComponent<TextProps>;
export { Text };
//# sourceMappingURL=Text.d.ts.map