Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Commit

Permalink
Added inverted prop
Browse files Browse the repository at this point in the history
  • Loading branch information
romanslonov committed Apr 19, 2019
1 parent 2008dc7 commit 14df589
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/components/button.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ size | String | Button size, ['1', '2', '3', '4'] | '3'
disabled | Boolean | Whether button disabled or not | false
loading | Boolean | Whether button in loading state or not | false
icon-first | Boolean | Set to `true` if you want to render icon before text | false
inverted | Boolean | Set to `true` in order to use button on dark background | false

## Slots
Name | Slot props | Description
Expand Down
5 changes: 5 additions & 0 deletions src/components/Button/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ export default {
type: Boolean,
default: false,
},
inverted: {
type: Boolean,
default: false,
},
},
computed: {
classes() {
Expand All @@ -55,6 +59,7 @@ export default {
{ 'button--icon-only': !this.$slots.default },
{ 'button--icon-first': this.iconFirst },
{ 'button--wide': this.wide },
{ 'button--inverted': this.inverted },
];
},
},
Expand Down

0 comments on commit 14df589

Please sign in to comment.