New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-font-size-resizer

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-font-size-resizer

This package adds buttons that allow you to resize the font size of the entire html React App

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

react-font-size-resizer

This package adds buttons that allow you to modify the font size of the entire html React App

NPM JavaScript Style Guide

Install

npm install --save react-font-size-resizer

Usage

import React, { Component } from "react";

import SwitchTextSize from "react-font-size-resizer";

class Example extends Component {
  render() {
    return <SwitchTextSize />;
  }
}

Props

<SwitchTextSize
  default={100} // numerical default font size value
  step={20} // numerical quantity that increases / decreases
  min={60} // numerical min font size value
  max={180} // numerical max font size value
  suffix={"%"} // string suffix property font-size css
  store={localStorage} // object store to save current font size value
  storeKey="SwitchTextSize" // string of store key
/>

Live Demo

https://fcabanasm.github.io/react-font-size-resizer

License

MIT © fcabanasm

Keywords

react

FAQs

Package last updated on 01 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts