react-text-scaler
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

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.

Package Sidebar

Install

npm i react-text-scaler

Weekly Downloads

2

Version

2.0.1

License

MIT

Unpacked Size

14.1 kB

Total Files

8

Last publish

Collaborators

  • s.watanabe