Socket
Socket
Sign inDemoInstall

mjml-button

Package Overview
Dependencies
88
Maintainers
6
Versions
125
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mjml-button

mjml-button


Version published
Weekly downloads
569K
increased by2.47%
Maintainers
6
Install size
13.4 MB
Created
Weekly downloads
 

Readme

Source

mj-button

desktop

Displays a customizable button.

The `mj-button` won't be fully clickable because of client support. See discussion at Issue #359.
<mjml>
  <mj-body>
    <mj-section>
      <mj-column>
        <mj-button font-family="Helvetica" background-color="#f45e43" color="white">
          Don't click me!
         </mj-button>
      </mj-column>
    </mj-section>
  </mj-body>
</mjml>

try it live

`mj-button` is an "ending tag", which means it can contain HTML code which will be left as it is, so it can contain HTML tags with attributes, but it cannot contain other MJML components. More information about ending tags in this section.
attributeunitdescriptiondefault value
alignstringhorizontal alignmentcenter
background-colorcolorbutton background-color#414141
borderstringcss border formatnone
border-bottomstringcss border formatn/a
border-leftstringcss border formatn/a
border-radiuspxborder radius3px
border-rightstringcss border formatn/a
border-topstringcss border formatn/a
colorcolortext color#ffffff
container-background-colorcolorbutton container background colorn/a
css-classstringclass name, added to the root HTML element createdn/a
font-familystringfont nameUbuntu, Helvetica, Arial, sans-serif
font-sizepxtext size13px
font-stylestringnormal/italic/obliquen/a
font-weightnumbertext thicknessnormal
heightpxbutton heightn/a
hreflinklink to be triggered when the button is clickedn/a
inner-paddingpxinner button padding10px 25px
letter-spacingpx,emletter-spacingn/a
line-heightpx/%/noneline-height on link120%
paddingpxsupports up to 4 parameters10px 25px
padding-bottompxbottom offsetn/a
padding-leftpxleft offsetn/a
padding-rightpxright offsetn/a
padding-toppxtop offsetn/a
relstringspecify the rel attribute for the button linkn/a
targetstringspecify the target attribute for the button link_blank
text-alignstringtext-align button contentnone
text-decorationstringunderline/overline/nonenone
text-transformstringcapitalize/uppercase/lowercasenone
titlestringtooltip & accessibilityn/a
vertical-alignstringvertical alignmentmiddle
widthpxbutton widthn/a

FAQs

Last updated on 05 Feb 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc