Text

Text displays words and characters at various sizes.

MonalisaUI

View full example: Text Example

import React from 'react';
import { Text } from 'monalisa-ui';

const Example = () => (
  <Text>This is Text component</Text>
);

export default Example;

Configuration

Property

Default

Option

Description

h1

false

boolean

Font size 40

h2

false

boolean

Font size 34

h3

false

boolean

Font size 28

h4

false

boolean

Font size 22

h5

false

boolean

Font size 18

color

#000

string

Set color for the text

bold

false

boolean

Set font weight bold for the text

style

-

-

Style for the text

Example

Last updated