Buttons & OTP

EmailButton

box.EmailButton(button => {
    button.WithText("Get Started")
          .WithHref("https://example.com")
          .WithStyle(EmailButtonStyle.Primary);
});

box.EmailButton(button => {
    button.WithText("Learn More")
          .WithHref("https://example.com/docs")
          .WithStyle(EmailButtonStyle.Secondary);
});

box.EmailButton(button => {
    button.WithText("Cancel")
          .WithHref("https://example.com/cancel")
          .WithStyle(EmailButtonStyle.Danger);
});

Button Sizes

box.EmailButton(button => {
    button.WithText("Small")
          .WithHref("https://example.com/account")
          .WithStyle(EmailButtonStyle.Primary)
          .WithSize(EmailButtonSize.Small);
});

box.EmailButton(button => {
    button.WithText("Large")
          .WithHref("https://example.com/account")
          .WithStyle(EmailButtonStyle.Primary)
          .WithSize(EmailButtonSize.Large);
});

EmailButtonGroup

box.EmailButtonGroup(group => {
    group.AddButton("Accept", "https://example.com/invitations/accept", EmailButtonStyle.Primary);
    group.AddButton("Decline", "https://example.com/invitations/decline", EmailButtonStyle.Secondary);
});

EmailOtpCode

Display one-time password codes:

box.EmailOtpCode("847291");

API Reference