@@ -17,56 +17,51 @@ var vm = new Vue({
1717
1818### events
1919
20- | event | args | Description |
21- | -------| ------| -------------|
22- | ` @click ` || emitted on click |
23-
20+ | event | args | Description |
21+ | -------- | ---- | ---------------- |
22+ | ` @click ` | | emitted on click |
2423
2524### props
2625
27- | prop | Type | Default | Description |
28- | -------| ------| ---------| -------------|
29- | ` disabled ` | String|| disable the button |
30- | ` accent ` | Boolean|| secondary color theme |
31- | ` raised ` | Boolean|| a contained button that is elevated upon the surface |
32- | ` unelevated ` | Boolean|| a contained button that is flush with the surface |
33- | ` stroked ` | Boolean|| a contained button that is flush with the surface and has a visible border(* )|
34- | ` dense ` | String|| compresses the button text to make it slightly smaller |
35- | ` compact ` | Boolean|| reduces the amount of horizontal padding in the button |
36- | ` event ` | String| optional | optional event to emit on click |
37- | ` event-target ` | Object| vm.$root | optional event target, defaults to root bus |
38- | ` event-args ` | Array| [ ] | optional event args |
39- | ` href ` | String|| link's href, renders anchor (see notes below) |
40- | ` to ` | String, Object| undefined | router-link property _ (* )_ |
41- | ` replace ` | Boolean| false | router-link property _ (* )_ |
42- | ` append ` | Boolean| false | router-link property _ (* )_ |
43- | ` exact ` | Boolean| false | router-link property _ (* )_ |
44- | ` active-class ` | String| router-link-active | router-link property _ (* )_ |
45- | ` exact-active-class ` | String| router-link-exact-active | router-link property _ (* )_ |
46-
47- > _ (* )_ Requires [ vue-router] ( https://router.vuejs.org )
26+ | prop | Type | Default | Description |
27+ | -------------------- | -------------- | ------------------------ | ------------------------------------------------------------------------------ |
28+ | ` disabled ` | String | | disable the button |
29+ | ` accent ` | Boolean | | secondary color theme |
30+ | ` raised ` | Boolean | | a contained button that is elevated upon the surface |
31+ | ` unelevated ` | Boolean | | a contained button that is flush with the surface |
32+ | ` stroked ` | Boolean | | a contained button that is flush with the surface and has a visible border(\* ) |
33+ | ` dense ` | String | | compresses the button text to make it slightly smaller |
34+ | ` event ` | String | optional | optional event to emit on click |
35+ | ` event-target ` | Object | vm.$root | optional event target, defaults to root bus |
36+ | ` event-args ` | Array | [ ] | optional event args |
37+ | ` href ` | String | | link's href, renders anchor (see notes below) |
38+ | ` to ` | String, Object | undefined | router-link property _ (\* )_ |
39+ | ` replace ` | Boolean | false | router-link property _ (\* )_ |
40+ | ` append ` | Boolean | false | router-link property _ (\* )_ |
41+ | ` exact ` | Boolean | false | router-link property _ (\* )_ |
42+ | ` active-class ` | String | router-link-active | router-link property _ (\* )_ |
43+ | ` exact-active-class ` | String | router-link-exact-active | router-link property _ (\* )_ |
44+
45+ > _ (\* )_ Requires [ vue-router] ( https://router.vuejs.org )
4846
4947### text buttons
5048
5149``` html
5250<mdc-button >Baseline</mdc-button >
53- <mdc-button compact >Compact</mdc-button >
5451<mdc-button dense >Dense</mdc-button >
5552```
5653
5754### Raised Button
5855
5956``` html
6057<mdc-button raised >Baseline</mdc-button >
61- <mdc-button raised compact >Compact</mdc-button >
6258<mdc-button raised dense >Dense</mdc-button >
6359```
6460
6561### Uneleveted buttons
6662
6763``` html
6864<mdc-button unelevated >Baseline</mdc-button >
69- <mdc-button unelevated compact >Compact</mdc-button >
7065<mdc-button unelevated dense >Dense</mdc-button >
7166```
7267
@@ -97,8 +92,8 @@ If the `to` property is defined, the item behaves as a
9792
9893#### Accessibility Warning:
9994
100- > Buttons are expected to be triggered using the Space or Enter key,
101- > while links are expected to be triggered using the Enter key.
95+ > Buttons are expected to be triggered using the Space or Enter key,
96+ > while links are expected to be triggered using the Enter key.
10297> Additionally, button and links have different behaviors on right click.
10398> see this [ MDN note] ( https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_button_role#Keyboard_and_focus )
10499
@@ -116,9 +111,10 @@ You might want to keep button behavior and do the navigation programatically:
116111```
117112
118113``` javascript
119- // register event from some component context
120- this .$root .$on (' my-event' , () => doSomething ())
114+ // register event from some component context
115+ this .$root .$on (' my-event' , () => doSomething ());
121116```
122117
123118### Reference
124- - < https://material.io/guidelines/components/buttons.html >
119+
120+ * < https://material.io/guidelines/components/buttons.html >
0 commit comments