Skip to content

Components

Component Subscribe

A heading and an email field in a pill whose button carries sending, success and failure: Subscribe Input as a section of its own.

Made for the page builder — try it there

Try it in the page builder

Blocks come with Pro and Ultimate

Preview every block now, in any theme and at any width. The source, the install command and your registry token come with a Pro or Ultimate plan.

Props

PropTypeDefaultDescription
titlestring"Notes from the studio, once a month"The block's h2.
leadstringa line about the newsletterA line under the heading; empty for none.
placeholderstring"Your email"The field's placeholder and accessible name.
submitLabelstring"Subscribe"The button's accessible name.
successMessagestring"Thanks — please check your inbox."What the field says once the address is sent.
notestringno spam, one-click leaveA small line under the field; empty for none.
layout"centred" | "split" | "image" | "photos""centred"centred: one narrow centred column. split: the text beside the field from 1024px. image: the title, text and field in a card box beside a photo (first and 1.18 : 1 on phones). photos (Kendi): three tilted photos (Framebrick UI photo-fan) over the centred column; they straighten and spread while the row is pointed at or focused.
image{ src, alt? }—layout="image": the photo (decorative unless it has alt text).
onSubscribe(email: string) => Promise<void> | void—Sends the address: a server action, or a function from a client component. Throw to show the error. Without it the field only pretends to send.
photos{ src, alt, href? }[]3 postslayout="photos": left, middle and right; each a link to its post when it has an href (alt names the link).
classNamestring—Classes for the <section>.
  • layout="photos" (Kendi, v19): Framebrick UI photo-fan, tilt 15° and tuck 40px, 600ms. Kendi's consent checkbox is not drawn — the field is its own form, so put the consent words in note.
  • Sending is yours: without onSubscribe the field waits 0.9 s and says thanks, so the section can be tried as it is.
  • The field's states are Subscribe Input's: sending, success and failure on the round button, announced to screen readers.

Be the first to know

Get new templates and components first

One short email when we release a template or a free component. No spam — unsubscribe anytime.

We use your email only for Framebrick updates. Privacy policy