
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
vue2-custom-input
Advanced tools
A custom input component NPM package for Vue2 applications
npm install vue2-custom-input
import CustomInput from "vue2-custom-input"
export default { components: { CustomInput } }
<custom-input></custom-input>
By default the input element takes the full available width.
<form style="max-width: 30rem"><custom-input></custom-input></form>
The custom-input component uses v-model to create two-way data binding.
<custom-input v-model="email"></custom-input>
type.
Default is text. E.g email, number
<custom-input type="email"></custom-input>
label.
E.g Email address
<custom-input label="Email address"></custom-input>
placeholder.
E.g Email address
<custom-input placeholder="Email address"></custom-input>
id.
Used to set id attribute on the input element. It is also dynamically bound to the for attribute of the label element.
<custom-input id="email"></custom-input>
srOnly. Used to specify whether the label should only be visible to screen readers. Default value is false.
<custom-input srOnly></custom-input>
color.
Used to set the border color of the input element
<custom-input color="blue"></custom-input>
required.
Used to specify whether a value is required.
Default value is true
<custom-input :required="false"></custom-input>
FAQs
A custom input component NPM package for Vue2 applications
The npm package vue2-custom-input receives a total of 0 weekly downloads. As such, vue2-custom-input popularity was classified as not popular.
We found that vue2-custom-input 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
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.