Skip to content

Commit

Permalink
feat: add named slot to allow icons to be added to the right of the i…
Browse files Browse the repository at this point in the history
…nput
  • Loading branch information
charles-salmon committed Apr 2, 2021
1 parent d3d999c commit 7fbd8ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/documentation/slots.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@

### arrow-icon
Replace the arrow next to the flag with a component of your choice

### icon-right
Add an icon to the right of the input, using another Vue component or an HTML element (e.g. for validation purposes)
1 change: 1 addition & 0 deletions src/components/vue-tel-input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
@keyup.enter="onEnter"
@keyup.space="onSpace"
/>
<slot name="icon-right" />
</div>
</template>

Expand Down

0 comments on commit 7fbd8ca

Please sign in to comment.