Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/team-griffin/react-font-importer


https://github.com/team-griffin/react-font-importer

fonts react

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# react-font-importer

```sh
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

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

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

return (

It also renders children just in case you need it.

);
```