Skip to content

chronotruck/vue-ctk-input-text

Repository files navigation

vue-ctk-input-text

vue-ctk-input-text

A vue component for select dates (range mode available) & time

vue-ctk-input-text

Demo

Enjoy here

Installation

Using yarn

yarn add vue-ctk-input-text

Using npm

npm i --save vue-ctk-input-text

Usage

ES6 Modules / CommonJS

import VueCtkInputText from 'vue-ctk-input-text';
import 'vue-ctk-input-text/dist/vue-ctk-input-text.min.css';

Vue.component('vue-ctk-input-text', VueCtkInputText);
<vue-ctk-input-text></vue-ctk-input-text>

UMD

<vue-ctk-input-text></vue-ctk-input-text>

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

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

Props API

Props Type Required Default Options
v-model String/Int true - -
label String false Enter Text -
type String no text text or number
hint* text no -
error-hint** Boolean no false

Contribution

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

Build

Build configuration is located in the poi.config.js file, to build just run: npm run build, it will build to cjs and umd directories.

Tests

This template uses karma with chai by default, you can change test settings in poi.config.js

npm run test npm run test:watch npm run test:cov

License

This project is licensed under MIT License

About

A VueJs component : Input text with good UX & error management

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published