Skip to content

Commit 3f32bce

Browse files
tmorehousepi0
authored andcommitted
Support for input-group-button for input-group's (bootstrap-vue#267)
1 parent f825c86 commit 3f32bce

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

lib/components/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import bButton from './button.vue';
44
import bButtonGroup from './button-group.vue';
55
import bInputGroup from './input-group.vue';
66
import bInputGroupAddon from './input-group-addon.vue';
7+
import bInputGroupButton from './input-group-button.vue';
78
import bCard from './card.vue';
89
import bCardGroup from './card-group.vue';
910
import bCarousel from './carousel.vue';
@@ -49,6 +50,7 @@ export {
4950
bButtonGroup,
5051
bInputGroup,
5152
bInputGroupAddon,
53+
bInputGroupButton,
5254
bCard,
5355
bCardGroup,
5456
bDropdown,
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<template>
2+
<span class="input-group-button">
3+
<b-button :disabled="disabled" :variant="variant" href="">
4+
<slot></slot>
5+
</b-button>
6+
</span>
7+
</template>
8+
9+
<script>
10+
import bButton from './button.vue';
11+
12+
export default {
13+
components: {
14+
bButton
15+
},
16+
props: {
17+
disabled: {
18+
type: Boolean,
19+
default: false
20+
},
21+
variant: {
22+
type: String,
23+
default: null
24+
}
25+
}
26+
};
27+
</script>

0 commit comments

Comments
 (0)