Heading
Heading displays words and characters of various sizes. They are typically used to display text headings.
Derived components:
Import
import { Heading } from '@nomada-sh/react-native-eyecandy';
Example
Props
Text Props
Inherits Text Props
variant
This variant is used to set the font size.
Possible values:
'h1'uses a font size of48.'h2'uses a font size of40.'h3'uses a font size of32.'h4'uses a font size of24.'h5'uses a font size of20.'h6'uses a font size of18.
| Type | Default |
|---|---|
'h1' or 'h2' or 'h3' or 'h4' or 'h5' or 'h6' | 'h1' |