1.4.0 • Published 5 years ago

@team-griffin/react-font-importer v1.4.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

react-font-importer

npm i --save @team-griffin/react-font-importer

yarn add @team-griffin/react-font-importer

This package will import css files at runtime. This is useful for importing Google Web Font urls. Whilst this package does import css files, and is named font importer it is designed for use with gwf.

Usage

import { FontImporter } from '@team-griffin/react-font-importer'

const urls = [
  'https://fonts.googleapis.com/css?family=Roboto',
];

return (
 <FontImporter urls={urls}>
  <span>It also renders children just in case you need it.</span>
 </FontImporter>
);
1.4.0

5 years ago

1.3.2

5 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago