Marketing sectionsNewsletterInline

Open in Create
Search
astronomic.dev

NewsletterInline

Free

To ask for email signups beside a short heading, the field and button in one row.

File
NewsletterInline.astro
Group
Marketing sections
Kind
Interactive: inline script
Examples
1
import NewsletterInline from "@astronomic-dev/ui/components/NewsletterInline.astro";

Examples

Drag the orange handle to set the width. Frames get real breakpoints.

  • Static
  • Interactive
  • Framed

The heading beside the form

From a 48rem section (on the band, 48rem inside its padding) the header sits in the start column and the form in the end column, lined up with the header's top, so an error or a status under the form never moves the field or the button; below that they stack, the header first. The field and button share one row and the button drops under the field in a narrow box. The heading says what the field is for, so the field labels are for screen readers only (pass labelHidden: false in form to show them). It posts to # here.

main.astro
Minimal · Light

Waitlist

Be first in line

Join the waitlist and we'll email you the moment it's out.

You'll also get our newsletter: new themes, plugins and guides. Unsubscribe any time.