Installations
npm install vue-numeric-input
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
14.15.4
NPM Version
6.14.8
Score
67.6
Supply Chain
99.1
Quality
75.5
Maintenance
50
Vulnerability
99.6
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
HTML (67.38%)
Vue (15.11%)
JavaScript (12.74%)
CSS (4.78%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
Download Statistics
Total Downloads
589,326
Last Day
9
Last Week
9
Last Month
4,278
Last Year
70,562
GitHub Statistics
77 Stars
30 Commits
28 Forks
1 Watching
6 Branches
3 Contributors
Bundle Size
32.11 kB
Minified
11.14 kB
Minified + Gzipped
Package Meta Information
Latest Version
2.0.0
Package Id
vue-numeric-input@2.0.0
Unpacked Size
855.71 kB
Size
216.03 kB
File Count
15
NPM Version
6.14.8
Node Version
14.15.4
Total Downloads
Cumulative downloads
Total Downloads
589,326
Last day
0%
9
Compared to previous day
Last week
-99%
9
Compared to previous week
Last month
-7.4%
4,278
Compared to previous month
Last year
-21.2%
70,562
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Vue Numeric Input
Number input component based on Vue that is a replacement of native input number with optional control.
Installation
Install via NPM
$ npm install vue-numeric-input --save
Install via CDN
1<script src="https://unpkg.com/vue"></script> 2<script src="https://unpkg.com/vue-numeric-input"></script>
Global
Register VueNumericInput globally:
1import Vue from 'Vue'; 2import VueNumericInput from 'vue-numeric-input'; 3 4Vue.use(VueNumericInput)
Local
Include the VueNumericInput directly into your component using import:
1import VueNumericInput from 'vue-numeric-input' 2 3export default { 4 components: { 5 VueNumericInput 6 } 7}
Usage
Basic usage
1<template> 2 <div> 3 <vue-numeric-input v-model="value" :min="1" :max="10" :step="2"></vue-numeric-input> 4 </div> 5</template> 6 7<script> 8 export default { 9 data() { 10 return { 11 value: 1, 12 }; 13 }, 14 }; 15</script>
PROPS:
Name | Description | Type | Default | Options |
---|---|---|---|---|
name | Component name | String | - | - |
value | Binding value | Number | - | - |
placeholder | Input placeholder | String | - | - |
min | Minimum allowed value | Number | -Infinity | - |
max | Maximum allowed value | Number | Infinity | - |
step | Incremental Step | Number | 1 | - |
align | Alignment of Numeric Value | String | left | left, center, right |
width | Component Width | String | 150px | width in px, em, rem etc e.g. ‘20px’ |
size | Component Size | String | normal | size value can be 'small', 'normal', 'large' |
precision | Number of decimals | Number | 0 | Integer value |
controls | Enable/Disable Controls | Boolean | true | true/false |
controlsType | Controls Type | String | plusminus | plusminus/updown |
autofocus | Autofocus on Page Load | Boolean | false | true/false |
readonly | Is Readonly | Boolean | false | true/false |
disabled | Is Disabled | Boolean | false | true/false |
isinput | enable/disable keyboard input of number | Boolean | false | true/false |
mousewheel | Enable increment/decrement with mousewheel event | Boolean | false | true/false |
className | Css Class for Input Component | String | - | css class name |
EVENTS:
Event Name | Description | Parameters |
---|---|---|
input | triggers when input | (newValue) |
change | triggers when the value changes | (newValue) |
blur | triggers when Input blurs | (event: Event) |
focus | triggers when Input focus | (event: Event) |
METHODS:
Method | Description | Parameters |
---|---|---|
focus | focus the Input component | - |
blur | blur the Input component | - |
Inspired by react-numeric-input
License
MIT
![Empty State](/_next/static/media/empty.e5fae2e5.png)
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 1/29 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 2 are checked with a SAST tool
Reason
69 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-whgm-jr23-g3j9
- Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw
- Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25
- Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw
- Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq
- Warn: Project is vulnerable to: GHSA-phwq-j96m-2c2q
- Warn: Project is vulnerable to: GHSA-ghr5-ch3p-vcr6
- Warn: Project is vulnerable to: GHSA-434g-2637-qmqr
- Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m
- Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw
- Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p
- Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747
- Warn: Project is vulnerable to: GHSA-6h5x-7c5m-7cr7
- Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc
- Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx
- Warn: Project is vulnerable to: GHSA-74fj-2j2h-c42q
- Warn: Project is vulnerable to: GHSA-pw2r-vq6v-hr8c
- Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc
- Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp
- Warn: Project is vulnerable to: GHSA-pfq8-rq6v-vf5m
- Warn: Project is vulnerable to: GHSA-c7qv-q95q-8v27
- Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22
- Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp
- Warn: Project is vulnerable to: GHSA-896r-f27r-55mw
- Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h
- Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq
- Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488
- Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g
- Warn: Project is vulnerable to: GHSA-5rrq-pxf6-6jx5
- Warn: Project is vulnerable to: GHSA-8fr3-hfg3-gpgp
- Warn: Project is vulnerable to: GHSA-gf8q-jrpm-jvxq
- Warn: Project is vulnerable to: GHSA-2r2c-g63r-vccr
- Warn: Project is vulnerable to: GHSA-cfm4-qjh2-4765
- Warn: Project is vulnerable to: GHSA-x4jg-mjrx-434g
- Warn: Project is vulnerable to: GHSA-5fw9-fq32-wv5p
- Warn: Project is vulnerable to: GHSA-r8f7-9pfq-mjmv
- Warn: Project is vulnerable to: GHSA-rp65-9cf3-cjxr
- Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j
- Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w
- Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j
- Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp
- Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6
- Warn: Project is vulnerable to: GHSA-7mwh-4pqv-wmr8
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg
- Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p
- Warn: Project is vulnerable to: GHSA-g4rg-993r-mgx7
- Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36
- Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
- Warn: Project is vulnerable to: GHSA-rqff-837h-mm52
- Warn: Project is vulnerable to: GHSA-8v38-pw62-9cw2
- Warn: Project is vulnerable to: GHSA-hgjh-723h-mx2j
- Warn: Project is vulnerable to: GHSA-jf5r-8hm2-f872
- Warn: Project is vulnerable to: GHSA-5j4c-8p2g-v4jx
- Warn: Project is vulnerable to: GHSA-g3ch-rx76-35fx
- Warn: Project is vulnerable to: GHSA-wr3j-pwj9-hqq6
- Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7
- Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q
- Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp
Score
1.7
/10
Last Scanned on 2025-02-03
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreOther packages similar to vue-numeric-input
vue-numeric
Input field component to display currency value based on Vue.
vuetify-numeric
Numeric input components for use with vuetifyjs
@syncfusion/ej2-vue-inputs
A package of Essential JS 2 input components such as Textbox, Color-picker, Masked-textbox, Numeric-textbox, Slider, Upload, and Form-validator that is used to get input from the users. for Vue
@robin-rossow/vue-input-number
Input field component to display a formatted number value. It is meant to be used with Vue 3.