
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
vue-integer-plusminus
Advanced tools
Integer input component for vue3 with increment and decrement buttons, fitting as spinbutton, allowing keyboard functionalities. See versions 1.x for vue2 component
npm install --save vue-integer-plusminus
import { IntegerPlusminus } from 'vue-integer-plusminus'
you may also import it globally in your app
import { createApp } from "vue";
import vueIntegerPlusminus from "vue-interger-plusminus";
createApp(App).use(vueIntegerPlusminus);
<integer-plusminus></integer-plusminus>
<integer-plusminus :min="ipmMin"
:max="ipmMax"
:step="ipmStep"
:vertical="ipmVertical"
:disabled="impDisabled"
form-name="integer_plus_minus"
v-model="ipmValue">
<p>Your value is</p>
{{ ipm_value }}
<template v-slot:decrement>{{ ipmSlotDecr }}</template>
<template v-slot:increment>{{ ipmSlotIncr }}</template>
</integer-plusminus>
| Prop | Type | Note |
|---|---|---|
min | number | minimum possible value. Cannot decrement lower. Default is 0 |
max | number | maximum possible value. Cannot increment over. Default is undefined |
step | number | Incremental step. Must be greater than 0. Default is 1 |
vertical | Boolean | Use vertical layout. Default is false |
disabled | Boolean | Disabled buttons and keys events. Default is false |
spin-button-aria-label | string | Set aria-label attribute on value element, optional |
increment-aria-label | string | Set aria-label attribute on decrement button element, optional |
decrement-aria-label | string | Set aria-label attribute on increment button element, optional |
form-name | string | Set the 'name' attribute of the form input. Default is 'integerPlusMinus', optional |
initial-value | number | When v-model is not used, use this attribute to initialized integer value, optional |
This component provide 3 slots
Spinbutton pattern (from WAI-ARIA specifications) is implemented on the middle part, where value is usually displayed. By focusing it (click on it), you can use keyboard to:
Thanks to codekipple for this.
You can override base CSS variable used, like colors. After importing this library style, override CSS variable in root. For example, the following CSS will set spinbutton part's background to fuchsia.
:root {
--ipm-background-color: fuchsia;
}
Refer to src/styles/variables.css for the full list of variable used
in this library that you can override.
You can also override style regrouped under .int-pm class.
This library is managed with vue-CLI
npm installnpm run serve, the script will start the mini demo applicationnpm run build command and commit your work for a pull request.FAQs
Integer input with increment and decrement buttons for vue 3
The npm package vue-integer-plusminus receives a total of 55 weekly downloads. As such, vue-integer-plusminus popularity was classified as not popular.
We found that vue-integer-plusminus demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.