https://github.com/refirst11/react-text-scaler
Text scaling support readability.
https://github.com/refirst11/react-text-scaler
scalling text ui-components
Last synced: about 9 hours ago
JSON representation
Text scaling support readability.
- Host: GitHub
- URL: https://github.com/refirst11/react-text-scaler
- Owner: refirst11
- License: mit
- Created: 2023-07-14T12:31:19.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-13T00:16:42.000Z (over 1 year ago)
- Last Synced: 2025-09-30T00:13:44.506Z (9 months ago)
- Topics: scalling, text, ui-components
- Language: TypeScript
- Homepage: https://pj.su-pull.net/react-text-scaler
- Size: 36.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: license
Awesome Lists containing this project
README
# react-text-scaler
[](https://github.com/su-pull/react-text-scaler/releases/latest)
[](https://bundlephobia.com/package/react-text-scaler)
[](https://opensource.org/licenses/MIT)
This is React component, for text scaling support mini and big text size readability.
## Installation
```sh
npm install react-text-scaler
```
## Usage
```tsx
import { TextScaler } from 'react-text-scaler'
const MyComponent = () => {
return
}
```
## 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.