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
Get early access
Join the waitlist and we'll email you the day MyApp opens.
Add it to your project
-
Sign in once on this machine
izzy loginThe account is free. Create a free account
-
Add the block
izzy add block signupWrites 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:
izzy add block signup --layout Split --consent true| Name | Type or choices | Default | Description |
|---|---|---|---|
Layout | Band | Split | Card | Band | Band 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. |
Kind | Waitlist | Newsletter | Waitlist | Sets the words: "Join the waitlist" or "Subscribe", and what they'll get. |
Consent | true | false | false | Adds a required checkbox to agree to the emails. The button waits until it's ticked; with JavaScript off, the server checks it. |
PrivacyHref | text | privacy | Where "Privacy policy" in the small print goes. |
Name | text | SignUp | The component's name. |
Into | text | Components/Pages/Home.razor | The page it's added to, at the end. |
Mode support
| Feature | Static | Interactive |
|---|---|---|
| Everything | Yes | Yes |
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.