ember-cli addon for @material/button
ember install ember-cli-mdc-button
@use "@material/button/mixins" as button;
This package contains the following top-level components.
Add a button element to the page.
The inline version:
or the block version:
-
style
- The button style. Must either be one of the following string values:raised
,unelevated
, oroutlined
-
label
- The button label -
leadingIcon
- Icon displayed before the label -
trailingIcon
- Icon displayed after the label
Use the on
modifier to listen for button clicks.
The button also supports the standard HTML attributes of a button:
The MdcButtonLinkTo
components will bind the button to a route, which means you
do not have to create an action that routes to a new location when clicked. The
does this by extending the LinkComponent
component, and applying the Button
mixin
exported from this module.
Because
MdcButtonLinkTo
extendsLinkComponent
, all properties and methods available onLinkComponent
are available onMdcButtonLinkTo
.