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

Commit 14df589

Browse files
committed
Added inverted prop
1 parent 2008dc7 commit 14df589

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

docs/components/button.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ size | String | Button size, ['1', '2', '3', '4'] | '3'
127127
disabled | Boolean | Whether button disabled or not | false
128128
loading | Boolean | Whether button in loading state or not | false
129129
icon-first | Boolean | Set to `true` if you want to render icon before text | false
130+
inverted | Boolean | Set to `true` in order to use button on dark background | false
130131

131132
## Slots
132133
Name | Slot props | Description

src/components/Button/main.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ export default {
4545
type: Boolean,
4646
default: false,
4747
},
48+
inverted: {
49+
type: Boolean,
50+
default: false,
51+
},
4852
},
4953
computed: {
5054
classes() {
@@ -55,6 +59,7 @@ export default {
5559
{ 'button--icon-only': !this.$slots.default },
5660
{ 'button--icon-first': this.iconFirst },
5761
{ 'button--wide': this.wide },
62+
{ 'button--inverted': this.inverted },
5863
];
5964
},
6065
},

0 commit comments

Comments
 (0)