ember-cli addon for @material/button
npm install ember-cli-mdc-buttonember-cli-mdc-button
======================
ember-cli addon for @material/button
Installation
------------
ember install ember-cli-mdc-button
Styles
-------
``sass`
@use "@material/button/mixins" as button;
Components
-----------
This package contains the following top-level components.
MdcButton
---------------------
Add a button element to the page.
The inline version:
`handlebars`
@leadingIcon=icon
@trailingIcon=icon />
or the block version:
`handlebars
`
* style - The button style. Must either be one of the following string values: raised, unelevated, or outlinedlabel
* - The button labelleadingIcon
* - Icon displayed before the labeltrailingIcon
* - Icon displayed after the label
`handlebars`
Use the on modifier to listen for button clicks.
`handlebars`
The button also supports the standard HTML attributes of a button:
`handlebars`
MdcButtonLinkTo
---------------------
The MdcButtonLinkTo components will bind the button to a route, which means youLinkComponent
do not have to create an action that routes to a new location when clicked. The
does this by extending the Button
component, and applying the mixin
exported from this module.
> Because MdcButtonLinkTo extends LinkComponent,LinkComponent
> all properties and methods available on MdcButtonLinkTo
> are available on .
`handlebars
{{!-- The button label is the first parameter for inline links. --}}
``