Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 681 Bytes

Font.md

File metadata and controls

31 lines (22 loc) · 681 Bytes

Font

Set font-family and other typographic styles

The Font components provides basic webfont utilities to wrap your app. It also provides a convenient webfont loader using Google Fonts.

Usage

import React from 'react'
import { Font } from '@compositor/kit'

export default props =>
  <Font
    fontFamily='"Lato, sans-serif"'
    {...props}
  />

Props

Name Default Description
fontFamily 'system-ui, sans-serif' Font stack
lineHeight 1.5 Default line height
color #000 Default color

Related