1.4.4 • Published 11 months ago

react-reading-panel v1.4.4

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Demo

npm Commitizen friendly semantic-release License: MIT GitHub Repo stars npm

Main Features

  1. Change font size
  2. Change line spacing
  3. Change letter spacing
  4. Switch between light/dark colors

    More features are coming soon!

Installation

npm install --save react-reading-panel

OR

yarn add react-reading-panel

Usage

Target by Id

<ReadingPanel targetId="sample"></ReadingPanel>
<p id="sample">
    Text to be changed
</p>

Target by class

<ReadingPanel targetClass="sample"></ReadingPanel>
<p className="sample">
    Text to be changed
</p>

Settings

NameDescriptionDefault
colorSettinglight/dark default colorssee below
defaultThemedefault theme to start fromlight
directionpanel directionhorizontal
fontSizeStepfont size step size1
fontSizeUnitsfont size unitspx
letterSpacingDefaultSizeletter spacing default size1px
letterSpacingUnitletter spacing unitpx
lineHeightDefaultSizeline height default size1rem
lineHeightsStepline height step size1
lineHeightUnitsline height unitspx
showButtonsshow only some of the buttonsshows everything

Color Setting

NameDescriptionDefault
bgLightColorlight background color#ffffff (white)
fgLightColorlight foreground color#000000 (black)
fgDarkColordark background color#ffffff (white)
bgDarkColordark foreground color#000000 (black)
1.4.4

11 months ago

1.4.3

11 months ago

1.4.2

11 months ago

1.4.1

11 months ago

1.4.0

11 months ago

1.3.0

11 months ago

1.2.10

11 months ago

1.2.9

11 months ago

1.2.8

11 months ago

1.2.7

11 months ago

1.2.6

11 months ago

1.2.5

11 months ago

1.2.4

11 months ago

1.2.3

11 months ago

1.2.2

11 months ago

1.2.1

11 months ago

1.2.0

11 months ago

1.1.1

11 months ago

1.1.0

11 months ago

1.0.9

11 months ago

1.0.8

11 months ago

1.0.7

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago