Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (21 sloc) 686 Bytes

Typography

See the demo component here

Usage

Below, an example of using the Typography component:

import { Typography } from 'mdwrapper';

const Demo = () => (
  <>
    <Typography type={'headline'} size={4}/>Headline<Typography>
    <Typography type={'body'} size={2}/>Body<Typography>
  </>
);

Props

List of all properties for the Typography component:

Prop Type Default Description
children object - Node Content
element string 'span' Element
size number 1 Size: (1, 2, 3, 4, 5 & 6)
type string '' Type: ('headline', 'subtitle' & 'body')
You can’t perform that action at this time.