digitalapplebee / react-dyslexia

Dyslexia words effect with React.

Home Page:https://www.npmjs.com/package/react-dyslexia

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation

npm i react-dyslexia

Demo

Codesandbox Playground

Example

import React from "react";
import Dyslexia from "react-dyslexia";

function App() {
  return (
    <Dyslexia
      delay={700}
      text="There is no such thing as an accident. What we call by that name is the effect of some cause which we do not see."
    />
  );
}

export default App;
name types default Detail
text String 'Dyslexia' Text for effect
delay Number 500 Delay of dyslexia effect
minWordLength Number 4 Minimal word length
scrambleChance Number 80 Percentage chance of a word being scrambled

TODO LIST

  • More customizations.
  • Add support for Typescript.

If you want, you can contribute to https://github.com/digitalapplebee/react-dyslexia

Based on https://github.com/L1fescape/dyslexia

About

Dyslexia words effect with React.

https://www.npmjs.com/package/react-dyslexia

License:MIT License


Languages

Language:JavaScript 100.0%