https://github.com/achaak/react-font-tools
Tools to help you with font of your app.
https://github.com/achaak/react-font-tools
font react react-hook
Last synced: about 2 months ago
JSON representation
Tools to help you with font of your app.
- Host: GitHub
- URL: https://github.com/achaak/react-font-tools
- Owner: Achaak
- License: mit
- Created: 2020-12-28T21:55:49.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-13T14:07:28.000Z (about 3 years ago)
- Last Synced: 2023-03-05T19:57:12.772Z (about 2 years ago)
- Topics: font, react, react-hook
- Language: JavaScript
- Homepage:
- Size: 35.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# react-font-tools
Tools to help you with font of your app.
## Install
```sh
yarn add react-font-tools
# or
npm i react-font-tools --save
```## Change log
[https://github.com/Achaak/react-font-tools/blob/master/CHANGELOG.md](https://github.com/Achaak/react-font-tools/blob/master/CHANGELOG.md)## Hooks
### useFontSize
Return the font size and setFontSize to set a new font.The default font is 1rem
Example:
``` js
const [fontSize, setFontSize] = useFontSize()setFontSize("2rem")
```