New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vue2-custom-input

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue2-custom-input

A custom input component NPM package for Vue2 applications

  • 1.0.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

vue2-custom-input

A custom input component NPM package for Vue2 applications

Installation

npm install vue2-custom-input

Usage

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>

v-model

The custom-input component uses v-model to create two-way data binding. <custom-input v-model="email"></custom-input>

Props

  • 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

Package last updated on 30 Mar 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc