1.1.2 • Published 2 years ago

lib-typr v1.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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

MIT

Github repo

You can check out my github for more experimental projects like this

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago