This is React component, for text scaling support mini and big text size readability.
npm install react-text-scaler
import { TextScaler } from 'react-text-scaler'
const MyComponent = () => {
return <TextScaler scaleRange={20} stickSize={10} />
}
Renders the Based on font size of body the main element's texts.
Font size is Absolute values are supported.
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 |
The MIT License.