v1.2.0

Button

Buttons allow users to take actions and make choices with a single tap.

Variants

Contained Outlined Text
<me-button variant="contained">Contained</me-button> <me-button variant="outlined">Outlined</me-button> <me-button>Text</me-button>

Colors

Primary Secondary Error Warning Info Success
<me-button variant="contained" color="secondary">Secondary</me-button> <me-button variant="contained" color="error">Error</me-button>

Sizes

Small Medium Large
<me-button variant="contained" size="small">Small</me-button> <me-button variant="contained" size="large">Large</me-button>

With Icons

Add Item Send
<me-button variant="contained"> <me-icon slot="start-icon"><svg ...>...</svg></me-icon> Add Item </me-button>

Disabled

Contained Outlined Text

Link

Link Button
<me-button variant="contained" href="/getting-started.html">Link Button</me-button>

API

AttributeTypeDefaultDescription
varianttext | contained | outlinedtextThe button style variant.
colorprimary | secondary | error | warning | info | success | inheritprimaryThe color palette to use.
sizesmall | medium | largemediumThe button size.
disabledbooleanfalseDisables the button.
hrefstringRenders as an <a> tag with this href.
targetstringTarget for the link (when href is set).

Slots

SlotDescription
(default)Button label text.
start-iconIcon rendered before the label.
end-iconIcon rendered after the label.