Skip to main content

Body

Body displays words and characters of various sizes. They are typically used to display text content.

Import

import { Body } from '@nomada-sh/react-native-eyecandy';

Example

Props

Text Props

Inherits Text Props


size

Font size of the text.

Possible values:

  • Any number can be used as a font size.
  • 'xsmall' uses a font size of 10.
  • 'small' uses a font size of 12.
  • 'medium' uses a font size of 14.
  • 'large' uses a font size of 16.
  • 'xlarge' uses a font size of 18.
TypeDefault
number or 'xsmall' or 'small' or 'medium' or 'large' or 'xlarge'medium