TidalUI

Newsletter signup preview

A native newsletter email block with consumer-owned submission, status, consent, and delivery behavior.

pro · Forms · composite

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add @tidal-pro/newsletter-signup

Import components/ui/tidal.css, components/ui/newsletter-signup.css. Wrap installed components in tidal-scope.

Preview

Newsletter signup component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/newsletter-signup.css";
import{TidalNewsletterSignup}from"./components/ui/newsletter-signup";
export default()=><div className="tidal-scope"><TidalNewsletterSignup title={"Demo"}/></div>;

API and props

TidalNewsletterSignup.title (required)
ReactNode

Required title value accepted by this exported component.

TidalNewsletterSignup.consent
ReactNode

Optional consent value accepted by this exported component.

TidalNewsletterSignup.description
ReactNode

Optional description value accepted by this exported component.

TidalNewsletterSignup.emailDescription
string | undefined

Optional email description value accepted by this exported component.

TidalNewsletterSignup.emailError
string | undefined

Optional email error value accepted by this exported component.

TidalNewsletterSignup.emailInputProps
NewsletterEmailInputProps | undefined

Optional email input props value accepted by this exported component.

TidalNewsletterSignup.emailLabel
string | undefined

Optional email label value accepted by this exported component.

TidalNewsletterSignup.emailRef
Ref<HTMLInputElement> | undefined

Optional email ref value accepted by this exported component.

TidalNewsletterSignup.eyebrow
ReactNode

Optional eyebrow value accepted by this exported component.

TidalNewsletterSignup.footer
ReactNode

Optional footer value accepted by this exported component.

TidalNewsletterSignup.headingLevel
"h2" | "h3" | "h4" | undefined

Optional heading level value accepted by this exported component.

TidalNewsletterSignup.onStatusAction
((status: Exclude<TidalNewsletterSignupStatus, "idle">) => void) | undefined

Callback invoked when the status action interaction is proposed.

TidalNewsletterSignup.pendingLabel
string | undefined

Optional pending label value accepted by this exported component.

TidalNewsletterSignup.status
TidalNewsletterSignupStatus | undefined

Optional status value accepted by this exported component.

TidalNewsletterSignup.statusActionButtonProps
Omit<ButtonHTMLAttributes<HTMLButtonElement>, "type" | "children"> | undefined

Optional status action button props value accepted by this exported component.

TidalNewsletterSignup.statusActionLabel
string | undefined

Optional status action label value accepted by this exported component.

TidalNewsletterSignup.statusActionRef
Ref<HTMLButtonElement> | undefined

Optional status action ref value accepted by this exported component.

TidalNewsletterSignup.statusMessage
ReactNode

Optional status message value accepted by this exported component.

TidalNewsletterSignup.statusRef
Ref<HTMLDivElement> | undefined

Optional status ref value accepted by this exported component.

TidalNewsletterSignup.submitButtonProps
Omit<ButtonHTMLAttributes<HTMLButtonElement>, "type" | "children"> | undefined

Optional submit button props value accepted by this exported component.

TidalNewsletterSignup.submitLabel
string | undefined

Optional submit label value accepted by this exported component.

TidalNewsletterSignup.submitRef
Ref<HTMLButtonElement> | undefined

Optional submit ref value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas