React Native MantineTypography

Text

Typography component with theme support

Import: import { Text } from 'react-native-mantine';

Usage

import { Text } from 'react-native-mantine';

<Text
  size="lg"
  weight="600"
  color="blue"
  align="center"
>
  Styled text
</Text>

// With custom font size
<Text fontSize={20} color="red">
  Custom sized text
</Text>

// Bold text
<Text bold>Bold text</Text>

// Semi-bold text
<Text semiBold>Semi-bold text</Text>

Props

PropTypeDefaultDescription
sizestring'md'Predefined text size from theme (e.g., "xs", "sm", "md", "lg", "xl")
colorstringtheme.light.textText color - can be a theme color name (e.g., "blue", "red") or any valid color string
whitebooleanfalseSets text color to white, useful for dark backgrounds
boldbooleanfalseApplies bold font weight using theme font family
semiBoldbooleanfalseApplies semi-bold font weight using theme font family
weight'100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900'Font weight - numeric values from 100 (thin) to 900 (black)
fontSizenumberCustom font size in pixels, overrides the size prop
align'left' | 'center' | 'right' | 'justify'Text alignment
questrialbooleanfalseUses Questrial font family if available
styleTextStyleAdditional styles to apply to the text
childrenReact.ReactNodeText content to display

Source on GitHub · npm