Skip to content

Commit

Permalink
Support for input-group-button for input-group's (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmorehouse authored and pi0 committed Apr 22, 2017
1 parent f825c86 commit 3f32bce
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import bButton from './button.vue';
import bButtonGroup from './button-group.vue';
import bInputGroup from './input-group.vue';
import bInputGroupAddon from './input-group-addon.vue';
import bInputGroupButton from './input-group-button.vue';
import bCard from './card.vue';
import bCardGroup from './card-group.vue';
import bCarousel from './carousel.vue';
Expand Down Expand Up @@ -49,6 +50,7 @@ export {
bButtonGroup,
bInputGroup,
bInputGroupAddon,
bInputGroupButton,
bCard,
bCardGroup,
bDropdown,
Expand Down
27 changes: 27 additions & 0 deletions lib/components/input-group-button.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<template>
<span class="input-group-button">
<b-button :disabled="disabled" :variant="variant" href="">
<slot></slot>
</b-button>
</span>
</template>

<script>
import bButton from './button.vue';
export default {
components: {
bButton
},
props: {
disabled: {
type: Boolean,
default: false
},
variant: {
type: String,
default: null
}
}
};
</script>

0 comments on commit 3f32bce

Please sign in to comment.