0.1.9 • Published 11 months ago
@signupnotes/signupnotes-react v0.1.9
SignupNotes React Component
The signupnotes
package provides a React component to easily integrate SignupNotes forms into your React application.
Installation
npm install signupnotes/react
yarn add signupnotes/react
Usage
import { SignupNotesForm } from "@signupnotes/signupnotes-react"
<SignupNotesForm
formId="your-form-id"
onCompleted={handleCompleted}
onStepChange={handleStepChange}
onLoading={handleLoading}
onLoaded={handleLoaded}
values={{ name: 'John Doe', email: 'john@example.com' }}
metaData={{ source: 'newsletter' }}
/>
Props
- formId (required): The unique ID of the form.
- onCompleted (optional): Callback function that receives form submission data.
- onStepChange (optional): Callback function that receives the current step number.
- onLoading (optional): Callback function that receives the loading state (boolean).
- onLoaded (optional): Callback function that receives the loaded state (boolean).
- values (optional): Pre-fill form values as a record.
- metaData (optional): Additional metadata to send with the form.
0.1.9
11 months ago
0.1.8
11 months ago
0.1.7
11 months ago
0.1.6
11 months ago
0.1.5
11 months ago
0.1.4
11 months ago
0.1.3
11 months ago
0.1.2
11 months ago
0.1.1
12 months ago
0.1.0
12 months ago
0.0.9
1 year ago
0.0.8
1 year ago
0.0.7
1 year ago
0.0.6
1 year ago
0.0.5
1 year ago
0.0.4
1 year ago
0.0.3
1 year ago
0.0.2
1 year ago
0.0.1
1 year ago