Giter VIP home page Giter VIP logo

vue-eva-input's Introduction

Eva Input for Vue.js [DEPRECATED]

A beautiful input component based on Eva Design System and Vue 3.

If you are using Vue 2, please install v1.x instead.

Installation

$ npm install --save vue-eva-input
$ yarn add vue-eva-input

Only v1.0.5

$ npm install --save vue-eva-input eva-icons
$ yarn add vue-eva-input eva-icons

Usage

// main.js
import Vue from 'vue'
import VueEvaInput from 'vue-eva-input'

Vue.use(VueEvaInput)
<template>
  <eva-input v-model="value" />
</template>

API Reference

props type default Description
focus-placeholder String "Typing..." only shows when input is focused
primary Boolean false switch to "primary" theme
status String null "info", "warning", "danger", "success"
suffix-icon String null see official website
value String / Number null

Tech Stack

  • vue-sfc-rollup - Quickly generate redistributable Vue components with Rollup.
  • eva-icons - A pack of more than 480 beautifully crafted Open Source icons.

FAQ

How to add input mask?

$ npm install --save vue-the-mask
$ yarn add vue-the-mask
import Vue from 'vue'

// For more information, please visit: https://github.com/vuejs-tips/vue-the-mask
import VueTheMask from 'vue-the-mask'

Vue.use(VueTheMask)
<template>
  <eva-input v-mask="'(##) ####-####'" v-model="value" />
</template>

License

MIT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.