Reputation: 125
I have the following code for the username section:
<v-text-field
prepend-icon="fas fa-user"
height="60px"
placeholder="Username"
outlined
></v-text-field>
How can I create space between the user icon and the text field?
While I'm here I might as well also ask how I can make the width of the input field adjust to the width of the screen? Right now it's very small for some reason.
Upvotes: 0
Views: 3526
Reputation: 6544
You need to add icon onto prepend slot and then add margin-x
<v-text-field
label="Regular"
solo
>
<template v-slot:prepend>
<v-icon class="mx-5">mdi-account</v-icon>
</template>
</v-text-field>
Upvotes: 4