Skip to content

Commit 7fbd8ca

Browse files
feat: add named slot to allow icons to be added to the right of the input
1 parent d3d999c commit 7fbd8ca

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

docs/documentation/slots.md

+3
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@
22

33
### arrow-icon
44
Replace the arrow next to the flag with a component of your choice
5+
6+
### icon-right
7+
Add an icon to the right of the input, using another Vue component or an HTML element (e.g. for validation purposes)

src/components/vue-tel-input.vue

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
@keyup.enter="onEnter"
5656
@keyup.space="onSpace"
5757
/>
58+
<slot name="icon-right" />
5859
</div>
5960
</template>
6061

0 commit comments

Comments
 (0)