Skip to content

Instantly share code, notes, and snippets.

Created Dec 18, 2018
What would you like to do?
Base Input Text
export default {
props: {
value: {
type: String,
default: '',
computed: {
listeners () {
return {
// Pass all component listeners directly to input
// Override input listener to work with v-model
input: event => this.$emit('input',
<style lang="scss" scoped>
@import '../variables.scss';
.input {
width: 100%;
padding: 8px 10px;
border: 1px solid $vue-blue;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment