Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fengyuanchen/vue-number-input
Number input component for Vue.js.
https://github.com/fengyuanchen/vue-number-input
number-input vue vue-component vuejs
Last synced: about 15 hours ago
JSON representation
Number input component for Vue.js.
- Host: GitHub
- URL: https://github.com/fengyuanchen/vue-number-input
- Owner: fengyuanchen
- License: mit
- Created: 2018-03-13T08:32:13.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2022-09-11T05:43:13.000Z (about 2 years ago)
- Last Synced: 2024-10-31T17:19:02.331Z (17 days ago)
- Topics: number-input, vue, vue-component, vuejs
- Language: TypeScript
- Homepage: https://fengyuanchen.github.io/vue-number-input/
- Size: 1.41 MB
- Stars: 172
- Watchers: 6
- Forks: 35
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# vue-number-input
[![Coverage Status](https://img.shields.io/codecov/c/github/fengyuanchen/vue-number-input.svg)](https://codecov.io/gh/fengyuanchen/vue-number-input) [![Downloads](https://img.shields.io/npm/dm/@chenfengyuan/vue-number-input.svg)](https://www.npmjs.com/package/@chenfengyuan/vue-number-input) [![Version](https://img.shields.io/npm/v/@chenfengyuan/vue-number-input.svg)](https://www.npmjs.com/package/@chenfengyuan/vue-number-input) [![Gzip Size](https://img.shields.io/bundlephobia/minzip/@chenfengyuan/vue-number-input.svg)](https://unpkg.com/@chenfengyuan/vue-number-input/dist/vue-number-input.js)
> Number input component for Vue 3. For Vue 2, check out the [`v1`](https://github.com/fengyuanchen/vue-number-input/tree/v1) branch.
- [Docs](src/README.md)
- [Demo](https://fengyuanchen.github.io/vue-number-input)## Main npm package files
```text
dist/
├── vue-number-input.js (UMD, default)
├── vue-number-input.min.js (UMD, compressed)
├── vue-number-input.esm.js (ECMAScript Module)
├── vue-number-input.esm.min.js (ECMAScript Module, compressed)
└── vue-number-input.d.ts (TypeScript Declaration File)
```## Getting started
### Installation
Using npm:
```shell
npm install vue@3 @chenfengyuan/vue-number-input@2
```Using pnpm:
```shell
pnpm add vue@3 @chenfengyuan/vue-number-input@2
```Using Yarn:
```shell
yarn add vue@3 @chenfengyuan/vue-number-input@2
```Using CDN:
```html
```
### Usage
```js
import { createApp } from 'vue';
import VueNumberInput from '@chenfengyuan/vue-number-input';const app = createApp({});
app.component(VueNumberInput.name, VueNumberInput);
``````html
```
## Browser support
Same as Vue 3.
## Versioning
Maintained under the [Semantic Versioning guidelines](https://semver.org/).
## License
[MIT](https://opensource.org/licenses/MIT) © [Chen Fengyuan](https://chenfengyuan.com/)