src/components/inputs/indigo.vue
<template>
<input
v-bind='$attrs'
type='text'
:value='modelValue'
@input='onInput'
ref='input'
/>
</template>
<script>
export default {
props: {
modelValue: {
type: [String, Number],
default: ''
}
},
emits: ['update:modelValue'],
methods: {
onInput(e) {
this.$emit('update:modelValue', e.target.value);
},
focus() {
this.$refs.input.focus();
}
}
}
</script>
<style scoped lang='sass'>
input
background-color: #e8eaf6
border-radius: 3px
border: 1px solid #c5cae9
box-sizing: border-box
color: #1a237e
font-size: 16px
font-weight: 300
height: 28px
letter-spacing: 0.4px
padding: 0 6px
&::placeholder
color: #7986cb
opacity: 1
&:-ms-input-placeholder
color: #7986cb
&::-ms-input-placeholder
color: #7986cb
</style>