1.0.9 • Published 3 years ago

react-form-page-transition v1.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

react-form-page-transition

react-form-page-transition is a React component that enables to make easy <form /> page transitions

license npm latest package npm downloads

Installation

If you're using npm, in the command prompt run:

npm install react-form-page-transition --save

If you're using yarn, run:

yarn add react-form-page-transition

Usage

To use the component, first import FormPageTransition into your file:

import FormPageTransition from "react-form-page-transition";

Then, place the <FormPageTransition> in the component you want to make the page transition with forms.

A sample file might look like this:

import React from "react";
import FormPageTransition from "react-form-page-transition";

const App = () => (
  <FormPageTransition
    redirectUrl="redirectUrl"
    requestMethod="GET"
    requestBody={{ hello: "hola", world: "mundo" }}
  />
);

export default App;

Props

NameTypeDefaultDescription
redirectUrlstring""The action attribute value of the form
requestMethod"GET" | "POST""GET"The method attribute value of the form
requestBodyobject{}The values of the form
1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago