Permalink
Browse files

feat(input-group): Add prop tag to change root element type

  • Loading branch information...
tmorehouse committed Aug 18, 2017
1 parent d7e4f8a commit 800add6133c9bb937775adfd5fd35f3b85fb74eb
Showing with 6 additions and 2 deletions.
  1. +6 −2 lib/components/input-group.vue
@@ -1,5 +1,5 @@
<template>
<div :class="classObject" role="group">
<component :is="tag" :class="classObject" role="group">
<slot name="left">
<div v-if="left" class="input-group-addon" v-html="left"></div>
</slot>
@@ -9,7 +9,7 @@
<slot name="right">
<div v-if="right" class="input-group-addon" v-html="right"></div>
</slot>
</div>
</component>
</template>
<script>
@@ -39,6 +39,10 @@
right: {
type: String,
default: null
},
tag: {
type: String,
default: 'div'
}
}
};

0 comments on commit 800add6

Please sign in to comment.