react-text-scaler
v2.0.2
Published
React Component library for text scaling readability.
Downloads
13
Maintainers
Readme
react-text-scaler
This is React component, for text scaling support mini and big text size readability.
Installation
npm install react-text-scaler
Usage
import { TextScaler } from "react-text-scaler";
const MyComponent = () => {
return <TextScaler scaleRange={20} stickSize={10} />;
};
Instructions
Renders the Based on font size of body the main element's texts.
Font size is Absolute values are supported.
Properties
| Property | Property Meaning | | --------------------- | -------------------------------------------- | | scaleRange (required) | The scale range for px size | | stickSize (required) | The stick width for number | | className | Set the className of the TextScaler cmponent |
License
The MIT License.