Skip to content
GaudiGaudi Design System home

Search documentation

Search every page, heading and paragraph.

Newsletter

Newsletter sections built from one email subscription form, with an explicit host endpoint and local pending, success, and error feedback.

Layout@gaudi/design-system/layout/NewsletterFormView in StorybookSource

Installation

pnpm add github:ahmadassaf/design-system

Import from @gaudi/design-system. Load @gaudi/design-system/global.css once and add transpilePackages: ['@gaudi/design-system'] in Next.js.

import Newsletter from '@gaudi/design-system/layout/NewsletterForm';

Usage

import NewsletterForm from '@gaudi/design-system/layout/NewsletterForm';
<NewsletterForm title='Monthly field notes' endpoint='/api/newsletter' />

Examples

Form and availability

Storybook

Centered

Storybook

Split

Storybook

Image panel

Storybook

Compact

Storybook

Submission error

Storybook

API

8 props

Accessibility

Uses EmailInput with single-address pattern validation and the default smooth caret. Names the email input, preserves the submitted address on failure, disables duplicate submissions, and announces feedback beside the field.