Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/team-griffin/react-font-importer
- Owner: team-griffin
- License: mit
- Created: 2017-04-11T20:56:23.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-06T21:23:54.000Z (about 2 years ago)
- Last Synced: 2024-10-28T22:38:28.136Z (about 2 months ago)
- Topics: fonts, react
- Language: JavaScript
- Size: 348 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-font-importer
```sh
npm i --save @team-griffin/react-font-importeryarn 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.
);
```