from nbmail.compose import add_cta_button, block_text, compose_email
button_html = add_cta_button("Learn More", "https://example.com")
compose_email(
body=block_text(f"Ready?\n\n{button_html}")
)
|
Create a call-to-action button.
label : strButton text.
url : strTarget URL.
bg_color : str = '#007bff'Button background color (hex). Default is "#007bff".
text_color : str = '#ffffff'Button text color (hex). Default is "#ffffff".
: strHTML button element that can be embedded in emails.
|