0.1.8 • Published 10 months ago

waverunner-signup-form v0.1.8

Weekly downloads
-
License
MIT
Repository
bitbucket
Last release
10 months ago

signup-flow-package

NPM version npm-typescript

It is SF form for signup-flow-app. This will be updated under the developing.

Package URL

Installation:

npm install waverunner-signup-form

or

yarn add waverunner-signup-form

Usage Example:

Add SignUpForm to your component:

Live Demo

import { SignUpForm } from 'signup-flow-package'

interface IFormProps {
  firstName?: string;
  lastName?: string;
  address?: string;
  zipCode?: string;
  city?: string;
  phoneNumber?: string;
  email?: string;
  cardNumber?: string;
}

export default function Home() {
  const { steps, currentStep, isFirstStep, isLastStep, loading, setLoading, back, next } = useSignUpForm([
    'informationForm',
    'paymentForm'
  ])

  const onSubmit = (data: IFormProps) => {
    console.log(data);
  };

  return (
    <React.Fragment>
      <SignUpForm
        firstColor='#88B431'
        secondColor='#D9D9D9'
        headingTitle={['Enter Your Information', 'Enter Your Payment Details']}
        subCaption={[
          'Please fill out the following fields to create an account: *Email and password are case sensitive',
          '',
        ]}
        steps={2}
        onSubmit={onSubmit}
        paymentMethod={'dd'}
      />
    </React.Fragment>
  )
}

Props

NameTypeDefaultDescription
firstColorstring#88B431Primary color of form, e.g: button
secondColorstringD9D9D9Secondary color of form, e.g: text
headingTitlestring arrayTitle of each step, e.g:['Enter Your Information', 'Enter Your Payment Details']
subCaptionstring arraySubtitle of each step, e.g:['Enter Your Information', 'Please fill out the following fields']
stepsnumber2Form data will submit in this step
paymentMethodcc, ddddAdd payment method for step 2
onSubmitfunctionundefinedCallback when submit form data
messagestring`` | message text
targetGeostring array['']country code array ['us', 'de', 'gb']
0.1.2

10 months ago

0.1.8

10 months ago

0.1.7

10 months ago

0.1.4

10 months ago

0.1.3

10 months ago

0.1.6

10 months ago

0.1.5

10 months ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.10

1 year 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.2

1 year ago