react-font-tools
v1.0.6
Published
Tools to help you with font of your app.
Downloads
119
Readme
react-font-tools
Tools to help you with font of your app.
Install
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
Hooks
useFontSize
Return the font size and setFontSize to set a new font.
The default font is 1rem
Example:
const [fontSize, setFontSize] = useFontSize()
setFontSize("2rem")