
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
vue-custom-inputs
Advanced tools
Vue component for custom input, mobile web input, simulating native app input.
Vue custom input is a vue component for custom split input box, mobile web input box, simulating native app input box and etc. It's designed to input password and verification code. But you can also use it in other situation as you wish.
https://youjingyu.github.io/vue-custom-input/dist/example/
npm i vue-custom-inputs -S
<template>
<custom-input
input-height="50px"
:input-number="4"
input-type="number"
input-style-type="oneBorder"
@custom-input-change="change"
@custom-input-complete="complete">
</custom-input>
</template>
<script>
import customInput from 'vue-custom-input';
export default {
components: { 'custom-input': customInput },
methods: {
change(val) {
},
complete(val) {
}
}
}
</script>
<div id="app">
<custom-input></custom-input>
</div>
<script src="vue.js"></script>
<script src="vue-custom.js"></script>
<script>
new Vue({
el: '#app',
components: {
'custom-input': window.customInput
}
});
</script>
Attr. Name | Description | Required | Type | Default Value |
---|---|---|---|---|
custom-input-change | called when input value is changed | N | Function | - |
custom-input-complete | called when all input boxes are filled | N | Function | - |
input-number | input box number | N | Number | 4 |
input-style-type | two preset styles. You can also design your style by the following attributes | N | 'allBorder', 'oneBorder' | 'allBorder' |
input-type | just like html5 input type attribute, can be tel, number, text and etc. | N | String | 'text' |
password-char | the character showed in input box when the input-type is password | N | String | '*' |
input-width | input box width | N | String | - |
input-height | input box height | N | String | '50px' |
input-border-width | input box border width | N | String | '1px' |
input-border-color | input box border color | N | String | '#20A0FF' |
input-active-outline-color | input box outline color when focus on it | N | String | '#58B7FF' |
input-style | customize input box style as you want. All styles will be injected into box's style attribute | N | Object | {} |
input-active-style | input box style when focus on it. All styles will be injected into box's style attribute | N | Object | {} |
FAQs
Vue component for custom input, mobile web input, simulating native app input.
The npm package vue-custom-inputs receives a total of 3 weekly downloads. As such, vue-custom-inputs popularity was classified as not popular.
We found that vue-custom-inputs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.