ValyroUI English version

Newsletter Signup

Подписка на рассылку. Pro · Лендинги и бренд › Конверсия и подвал

Установка

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';

Пропсы

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.

Похожие компоненты

  • CTA Section — Блок призыва к действию
  • App Store Buttons — Кнопки магазинов приложений: App Store, Google Play, Galaxy Store, RuStore
  • Footer — Подвал сайта
  • Hero Section — Первый экран лендинга
  • Feature Grid — Сетка преимуществ
  • Bento Grid — Бенто-сетка карточек разной ширины и высоты с адаптивом
  • Logo Cloud — Логотипы клиентов
  • Pricing Table — Тарифные планы
  • Comparison Table — Сравнение продуктов
  • Testimonials — Отзывы клиентов
  • FAQ Section — Частые вопросы
  • Award Badge — Награда с лавровым венком, звёздами и подписью

Назад: CTA Section · Далее: App Store Buttons · Весь раздел «Лендинги и бренд»