MindeesUI
ComponentsTypography

Text

The base typography primitive — tone, weight, alignment, and decoration driven by the modular type scale.

Text is the foundational typography component in MindeesUI. It wraps React Native's Text, resolves a named variant from the modular type scale, and exposes semantic tone and weight tokens. Use it for body copy and anywhere you need consistent typographic rhythm.

Import

import { Text } from '@mindees/ui';

Usage

<Text variant="body" tone="secondary" weight="semibold">
  Hello, MindeesUI
</Text>

Props

PropTypeDefaultDescription
variantTextStyleName'body'Named text style from the modular type scale (e.g. body, caption, label, h1h6, code).
tone'primary' | 'secondary' | 'muted' | 'inverse' | 'link' | 'onAccent' | 'success' | 'danger' | 'warning' | 'info''primary'Semantic colour token.
weightFontWeightTokenOverrides the variant's default font weight.
alignTextStyle['textAlign']Horizontal text alignment.
italicbooleanfalseRenders italic.
underlinebooleanfalseAdds an underline decoration.
strikethroughbooleanfalseAdds a line-through decoration. Combines with underline.
fontFamilystringtheme system fontOverrides the font family.

Any remaining TextProps from React Native are forwarded to the underlying Text.

Accessibility

Inherits accessibility from the underlying RN Text — pass accessibilityLabel, accessibilityRole, etc. via props.

On this page