lib-typr
v1.1.2
Published
A ReactJS Component Library making forms more intuitive. For now, you can make fields appear in a sequence and the text typed out with a custom randomWait between characters
Downloads
1
Maintainers
Readme
Lib-Typr
Have form data presented one after the other with the text being written with a typing effect
.
Installation
To install it is as simple as simply typing out:
npm install lib-typr
Usage
Below is a simple example. Try it out
import { TyprForm } from "lib-typr";
export default App = () => {
return (
<TyprForm variables={["name", "age", "profession"]}>
<h1>Title of all of this</h1>
<div className="Field">
<h1>What is your name?</h1>
<input type={"text"} triggerNext={true} name="name" />
</div>
<div className="Field">
<h1>%name%, How old are you?</h1>
<input type={"text"} triggerNext={true} name="age" />
</div>
<div className="Field">
<h1>%name% being %age%, What is your profession?</h1>
<input type={"text"} triggerNext={true} name="profession" />
</div>
<p>%name% is %age% and interested in %profession%</p>
<button triggerNext={true}>Next</button>
</TyprForm>
)
}
License
Github repo
You can check out my github for more experimental projects like this