4.3.5 • Published 9 months ago

@berlitz/newsletter-sign-up v4.3.5

Weekly downloads
4,988
License
MIT
Repository
-
Last release
9 months ago

NewsletterSignUp npm version

Newsletter signup components has been designed to add custom fields to the footer for newsletter subscription. You can pass fieldset details via fields prop which the component renders to html form fields. The field type can be select, checkbox and text.

Installation

yarn add @berlitz/newsletter-sign-up

Props

ArgumentTypeRequiredDefaultExample
endpointUrlstring
errorTextstring'There was an error signing up! Please refresh and try again.'
fieldsarray
getEndpointUrlfunction
hiddenFieldsarray
mapFormValuesToPostBodyfunction
noteTextstring
submitTextstring'Sign Up',
submittingTextstring'Submitting'
successTextstring'Thanks for signing up!'
titlestring
unsubscribeTextstring

Usage

import NewsletterSignUp from '@berlitz/newsletter-sign-up'
const MyApp = () => <NewsletterSignUp
  endpointUrl="//signup.example.com"
  title="Sign up for newsletter"
  fields={[
    { name: "name", type: "text", label: "Your name" },
    { name: "email", type: "email", label: "Your email" }
  ]}
  />

When to use this component

Pass it to Footer's newsletterComponent prop as node.

Notes

Static endpointUrl can be overwritten with getEndpointUrl function which generates url from values of form. Data is being posted in application/json format. The posted object can be remapped passing the mapFormValuesToPostBody function.

4.3.5

9 months ago

4.3.4

10 months ago

4.3.2

1 year ago

4.3.1

1 year ago

4.3.3

1 year ago

4.3.0

1 year ago

4.2.7

1 year ago

4.2.6

1 year ago

4.2.9

1 year ago

4.2.8

1 year ago

4.2.5

2 years ago

4.2.4

2 years ago

4.2.3

2 years ago

4.2.2

2 years ago

4.2.1

2 years ago

4.2.0

2 years ago

4.1.30

2 years ago

4.1.28

3 years ago

4.1.29

2 years ago

4.1.27

3 years ago

4.1.26

3 years ago

4.1.22

3 years ago

4.1.23

3 years ago

4.1.24

3 years ago

4.1.25

3 years ago

4.1.24-test.2

3 years ago

4.1.21

3 years ago

4.1.20

3 years ago

4.1.18

3 years ago

4.1.19

3 years ago

4.1.17

3 years ago

4.1.16

3 years ago

4.1.15

3 years ago

4.1.14

3 years ago

4.1.10

4 years ago

4.1.11

4 years ago

4.1.12

4 years ago

4.1.13

4 years ago

4.1.9

4 years ago

4.1.8

4 years ago

4.1.7

4 years ago

4.1.6

4 years ago

4.1.4

4 years ago

4.1.3

4 years ago

4.1.5

4 years ago

4.0.2-alpha.52

4 years ago

4.1.2

4 years ago

4.1.1

4 years ago

4.1.0

4 years ago

4.0.6

4 years ago

4.0.5

4 years ago

4.0.4

4 years ago

4.0.3

4 years ago

4.0.2

4 years ago

4.0.1

4 years ago

4.0.0

4 years ago

3.1.2

4 years ago

3.1.1

4 years ago

3.1.0

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.7.26-alpha.15

4 years ago

2.7.25

4 years ago

2.7.24

4 years ago

2.7.23

4 years ago

2.7.22

4 years ago

2.7.21

4 years ago

2.7.20

4 years ago

2.7.19

4 years ago

2.7.18

4 years ago

2.7.17-alpha.0

4 years ago

2.7.17-alpha.1

4 years ago

2.7.16

4 years ago

2.7.15

4 years ago

2.7.14

4 years ago

2.7.13

4 years ago

2.7.12

4 years ago

2.7.11

4 years ago

2.7.10

4 years ago

2.7.9

4 years ago

2.7.8

4 years ago

2.7.7

4 years ago

2.7.6

4 years ago

2.7.5

4 years ago

2.7.4

5 years ago

2.7.2

5 years ago

2.7.3

5 years ago

2.7.1

5 years ago

2.7.0

5 years ago

2.6.3

5 years ago

2.6.2

5 years ago

2.6.1

5 years ago

2.6.0

5 years ago

2.5.4

5 years ago

2.5.3

5 years ago

2.5.2

5 years ago

2.5.1

5 years ago

2.5.0

5 years ago

2.4.10

5 years ago

2.4.9

5 years ago

2.4.7

5 years ago

2.4.6

5 years ago

2.4.8

5 years ago

2.4.5

5 years ago

2.4.4

5 years ago

2.4.3

5 years ago

2.4.2

5 years ago

2.4.1

5 years ago

2.4.0

5 years ago

2.3.22-alpha.15

5 years ago

2.3.21

5 years ago

2.3.20

5 years ago

2.3.19

5 years ago

2.3.18

5 years ago

2.3.17

5 years ago

2.3.16

5 years ago

2.3.15

5 years ago

2.3.14

5 years ago

2.3.13

5 years ago

2.3.12

5 years ago

2.3.11

5 years ago

2.3.10

5 years ago

2.3.9

5 years ago

2.3.8

5 years ago

2.3.7

5 years ago

2.3.6

5 years ago

2.3.5

5 years ago

2.3.4

5 years ago

2.3.3

5 years ago

2.3.2

5 years ago

2.3.1

5 years ago

2.3.0

5 years ago

2.2.56

5 years ago

2.2.55

5 years ago

2.2.54

5 years ago

2.2.53

5 years ago

2.2.52

5 years ago

2.2.51

5 years ago

2.2.50

5 years ago

2.2.49

5 years ago

2.2.48

5 years ago

2.2.47

5 years ago

2.2.46

5 years ago

2.2.45

5 years ago

2.2.44

5 years ago

2.2.43

5 years ago

2.2.42

5 years ago

2.2.41

5 years ago

2.2.40

5 years ago

2.2.39

5 years ago

2.2.38

5 years ago

2.2.37

5 years ago

2.2.35

5 years ago

2.2.34

5 years ago

2.2.33

5 years ago

2.2.32

5 years ago

2.2.30

5 years ago

2.2.29

5 years ago

2.2.28

5 years ago

2.2.27

5 years ago

2.2.26

5 years ago

2.2.25

5 years ago

2.2.24

5 years ago

2.2.23

5 years ago

2.2.22

5 years ago

2.2.21

5 years ago

2.2.20

5 years ago

2.2.19

5 years ago

2.2.18

5 years ago

2.2.17

5 years ago

2.2.16

5 years ago

2.2.14

5 years ago

2.2.13

5 years ago

2.2.12

5 years ago

2.2.11

5 years ago

2.2.10

5 years ago

2.2.9

5 years ago

2.2.8

5 years ago

2.2.7

6 years ago

2.2.6

6 years ago

2.2.5

6 years ago

2.2.4

6 years ago

2.2.3

6 years ago

2.2.1

6 years ago

2.1.38

6 years ago

2.1.37

6 years ago

2.1.36

6 years ago

2.1.35

6 years ago

2.1.34

6 years ago

2.1.33

6 years ago

2.1.32

6 years ago

2.1.31

6 years ago

2.1.30

6 years ago

2.1.29

6 years ago

2.1.28

6 years ago

2.1.27

6 years ago

2.1.26

6 years ago

2.1.25

6 years ago

2.1.23

6 years ago

2.1.22

6 years ago

2.1.21

6 years ago

2.1.20

6 years ago

2.1.19

6 years ago

2.1.18

6 years ago

2.1.17

6 years ago

2.1.15

6 years ago

2.1.14

6 years ago

2.1.13

6 years ago

2.1.12

6 years ago

2.1.11

6 years ago

2.1.10

6 years ago

2.1.8

6 years ago

2.1.7

6 years ago

2.1.6

6 years ago

2.1.5

6 years ago

2.1.4

6 years ago

2.1.3

6 years ago

2.1.2

6 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.19

6 years ago

2.0.18

6 years ago

2.0.16

6 years ago

2.0.15

6 years ago

2.0.14

6 years ago

2.0.13

6 years ago

2.0.12

6 years ago

2.0.9

6 years ago

2.0.8

6 years ago

2.0.7

6 years ago

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

2.0.0-alpha.0

6 years ago

1.0.22

6 years ago

1.0.21

6 years ago

1.0.20

6 years ago

1.0.19

6 years ago

1.0.18

6 years ago

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.22

6 years ago

0.0.21

6 years ago

0.0.20

6 years ago

0.0.19

6 years ago

0.0.18

6 years ago

0.0.17

6 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago