Home

Awesome

vue-input-ui

A beautiful input made with Vue JS

vue-input-ui

Demo

Enjoy

Installation

Using yarn

yarn add vue-input-ui

Using npm

npm i --save vue-input-ui

Usage

ES6 Modules / CommonJS

import VueInputUi from 'vue-input-ui';
import 'vue-input-ui/dist/vue-input-ui.css';

Vue.component('vue-input-ui', VueInputUi);
<VueInputUi v-model="yourValue" />

UMD

<VueInputUi v-model="yourValue" />

<script src="https://unpkg.com/vue" charset="utf-8"></script>
<script src="./dist/vue-input-ui.umd.min.js" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="./dist/vue-input-ui.css">

<script type="text/javascript">
  Vue.component('vue-input-ui', window.VueInputUi.default);
</script>

Props API

PropsTypeRequiredDefaultOptions
v-modelString/Inttrue--
idStringfalseVueInputUi-
labelStringfalseEnter Text-
typeStringnotext[text
sizeString sm or lgnofalse
colorString HEXnodogderblue
hint*Stringno-
error**Booleannofalse
darkBooleannofalse
dark-color (4)String (hex)no#424242
disabledBooleannofalse
requiredBooleannofalse
readonlyBooleannofalse
clearableBooleannofalse
loaderBooleannofalse
border-radiusNumberno4

Contribution

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Lints and fixes files

npm run lint

License

This project is licensed under MIT License