Skip to content

refirst11/react-text-scaler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-text-scaler

Release Status Minzip Size License: MIT

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.