Skip to content
Kits

Email

BetaBeta — the props contract is close to final, but small breaking changes can still land.

React Email compositions with Control UI colors and typography: contained or plain surfaces, column layouts, themed markdown and code, and a footer with social icons, address, and unsubscribe parts.

Examples

Announcement

Centered marketing send: logo masthead, hero image, a three-column highlight row, and a centered footer.

Release notes

Versioned changelog bullets plus an EmailMarkdown migration note and a themed EmailCodeBlock snippet.

Image and text

Two-column EmailColumns layout with a percentage-width image beside the story.

Newsletter

Centered masthead over left-aligned articles, with the social, address, and legal block outside the card.

Summary

Metric row centered inside a panel, above EmailDetailRow lines for a recurring digest.

Verification code

Centered transactional send: EmailOneTimeCode for the code, and a footer that identifies the sender without an unsubscribe link.

Receipt

Compact heading, an EmailInlineCode order number, and order lines with an emphasized total inside an EmailPanel.

Composition

Email layout

Img comes from React Email. EmailColumns stacks its columns on narrow screens.

  • <EmailLayout>
    • <EmailHeader>
      • <EmailLogo />
      • <EmailBrowserLink />
      </EmailHeader>
    • <EmailSection>
      • <EmailHeading />
      • <EmailText>
        • <EmailLink />
        • <EmailInlineCode />
        </EmailText>
      • <EmailPanel>
        • <EmailDetailRow />
        • <EmailDivider />
        </EmailPanel>
      • <EmailBulletList />
      • <EmailOneTimeCode />
      • <EmailMarkdown />
      • <EmailCodeBlock />
      • <EmailButton />
      </EmailSection>
    • <EmailColumns>
      • <Img />
      • <EmailSection />
      </EmailColumns>
    </EmailLayout>

Footer

EmailUnsubscribe belongs to marketing sends; transactional messages keep the sender identity and address only.

  • <EmailFooter>
    • <EmailSocialLinks>
      • <EmailMutedLink />
      </EmailSocialLinks>
    • <EmailFooterLinks />
    • <EmailCaption />
    • <EmailAddress />
    • <EmailUnsubscribe />
    • <EmailFooterLegal />
    </EmailFooter>

Installation

Use this command to install the component.

Registry command
See registry manifest

Usage

Dependencies

Email guidesrc/registry/sources/control-ui/email/README.mdSupport
Brand header and footersrc/registry/sources/control-ui/email/email-brand.tsxSupport
Markdown and codesrc/registry/sources/control-ui/email/email-code.tsxSupport
Footer partssrc/registry/sources/control-ui/email/email-footer.tsxSupport
Lengthsrc/registry/sources/control-ui/email/length.tsSupport
Eight email templatessrc/registry/sources/control-ui/email/templates.tsxSupport
Theme adaptersrc/registry/sources/control-ui/email/theme.tsSupport

Raw code

Installed component source and support files

src/registry/sources/control-ui/email/email.tsx