import { Component, Model, Prop, Vue } from 'vue-property-decorator';

@Component({ inheritAttrs: false })
export class BaseInput extends Vue {
  @Model('input', { type: String }) public readonly value!: string;
  @Prop({ type: Boolean, default: false }) public readonly disabled!: boolean;
  @Prop({ type: String }) public readonly label: string | undefined;
}

export type InputType = 'text' | 'password' | 'email';
