Skip to content
IzzyBlazor

Enter all results ↑ ↓ move Esc close

Sign-up

One email field and one button for a waitlist or a newsletter, with what they'll get and the reassurance right under it.

Preview

Consent

Get early access

Join the waitlist and we'll email you the day MyApp opens.

A few emails before launch. Unsubscribe any time. Privacy policy

Add it to your project

  1. Sign in once on this machine
    izzy login

    The account is free. Create a free account

  2. Add the block
    izzy add block signup

    Writes Components/Blocks/SignUp.razor and adds it at the end of Home.

Settings

Each setting is a flag on izzy add. The flag syntax isn't final; for now it looks like this:

bash
izzy add block signup --layout Split --consent true
Sign-up settings
NameType or choicesDefaultDescription
LayoutBand | Split | CardBandBand centers it on a tinted band across the page; Split puts the words beside the form; Card is a bordered panel in the page's column, for pages where a band is too loud.
KindWaitlist | NewsletterWaitlistSets the words: "Join the waitlist" or "Subscribe", and what they'll get.
Consenttrue | falsefalseAdds a required checkbox to agree to the emails. The button waits until it's ticked; with JavaScript off, the server checks it.
PrivacyHreftextprivacyWhere "Privacy policy" in the small print goes.
NametextSignUpThe component's name.
IntotextComponents/Pages/Home.razorThe page it's added to, at the end.

Mode support

What works in each mode, Sign-up
FeatureStaticInteractive
EverythingYesYes

Static: static server-side rendering, with no circuit and no WebAssembly. Interactive: Server, WebAssembly or Auto.

Accessibility

  • The section is named by its heading, an h2. The email field has a label: shown in Split and with consent, read to screen readers in a single row.
  • An invalid address shows its message under the field after a post, with the address kept.
  • The consent box says "(required)" in its label, so the reason the button waits is on screen.
  • The honeypot field is hidden from screen readers and skipped by the Tab key.
  • Signing up answers with a toast after a redirect, read by screen readers, with no script needed.

Components used

  • Section: Renders a full-width band of a page, such as a hero.
  • SectionHeader: Introduces a section of a landing page: an eyebrow, a heading and a sentence.
  • Container: Centers content at a readable width.
  • Column: Stacks fields, cards or text from top to bottom, with even spacing.
  • Grid: Lays out its children in columns set by breakpoint, by minimum width or by template.
  • Card: Groups media, a header, body sections, actions and a footer in a box.
  • Form: Posts its fields on static pages and validates them live on interactive pages.
  • Alert: Shows a status message about part of a page.
  • TextField: Lets the user enter a line of text, with a label, add-ons and masks.
  • Checkbox: Shows a checkbox styled to match the fields.
  • Button: Submits or resets a form, follows a link or runs C#.
  • Stack: Lays out its children in a row or a column, changing with the screen width.
  • TextBlock: Sets paragraphs, captions and labels in the library's text styles.
  • Anchor: Renders a text link, internal or external.

Connection lost

Rejoining the server…