BionicToggle is a lightweight, easy-to-use npm package that provides a toggle button for bionic reading. With BionicToggle, users can quickly and easily switch between normal text and bionic text, which is optimized for readability and comprehension. Installation
To install BionicToggle, simply run:
npm install bionictoggle
To use BionicToggle, you can import the module into your JavaScript file like this:
import BionicToggle from 'bionictoggle';
BionicToggle requires 'contentClassName' prop to be passed to it which holds the class name of the div inside which the blog text is rendered. As of today, BionicToggle supports rendering of p, span tags. Further additions will be done over the period of time.
Contributions are welcome! If you have any ideas for improvements or new features, feel free to open an issue or submit a pull request.
BionicToggle is licensed under the MIT License. See the LICENSE file for more details.