UNPKG

@janiscommerce/ui-native

Version:
14 lines (13 loc) 606 B
import React, { ReactElement } from 'react'; import { StyleProp, TextStyle, TextProps } from 'react-native'; export type TypographyType = 'display' | 'heading' | 'title' | 'label' | 'body' | 'overline'; export type TypographySize = 'large' | 'medium' | 'small'; interface TypographyProps extends TextProps { children?: ReactElement | string; style?: StyleProp<TextStyle>; type?: TypographyType; size?: TypographySize; color?: string; } declare const Typography: ({ children, style, type, size, color, ...props }: TypographyProps) => React.JSX.Element | null; export default Typography;