ValyroUI Русская версия

Newsletter Signup

Newsletter signup. Pro · Landing pages and brand › Conversion and footer

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add newsletter-signup
npm install valyro-ui-pro

import 'valyro-ui-pro/styles.css';
import { NewsletterSignup } from 'valyro-ui-pro';

Props

PropTypeDefault
titleReactNodeHeading beside or above the form; also the form's accessible name.
descriptionReactNodeSupporting text under the title.
onSubscribe *(email: string) => Promise<void>Called with a validated, trimmed address. Reject to show the error's message.
variant'inline' | 'card''inline'inline: text beside a one-line form. card: stacked inside a panel.
headingLevel1 | 2 | 3 | 4 | 5 | 62Level of the title (h1–h6).
placeholderstring'[email protected]'Placeholder of the email field.
emailLabelstring'Email address'Accessible label of the email field (visually hidden).
buttonLabelReactNode'Subscribe'Text of the submit button.
successMessageReactNode'Thanks! Check your inbox to confirm.'Announced under the form after onSubscribe resolves; the field is cleared.
invalidMessageReactNode'Enter a valid email address.'Shown when the address fails client-side validation.
errorMessageReactNode'Something went wrong. Please try again.'Shown when onSubscribe rejects without an error message.
privacyNoteReactNode'No spam. Unsubscribe at any time.'Small print under the form; null hides it.

Related components

Previous: CTA Section · Next: App Store Buttons · All Landing pages and brand