0.1.6 • Published 11 months ago

vue-dynamic-input-component v0.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

This project is licensed under the MIT License.

Probs

  • modelValue (required): The v-model binding for the input value.
  • type: The type of the input field (e.g., "text", "number", "password").
  • placeholder: The placeholder text for the input field.
  • background-color: The background color of the input field.
  • border-radius: The border radius of the input field.
  • color: The text color of the input field.
  • border-color: The border color of the input field.
  • min-length: The minimum length of the input value.
  • max-length: The maximum length of the input value.
  • pattern: A regular expression pattern for input validation.
  • width: Width of design input.
  • height: Height of design input
  • min-width: Min width of design input
  • max-width: Max width of design input
  • min-height: Min height of design input
  • max-height: Max height of design input

Installation

npm i vue-dynamic-input-component

or

yarn add vue-dynamic-input-component

Usage

import {VInput} from 'vue-dynamic-input-component' <br>
import 'vue-dynamic-input-component/dist/style.css';

Props

The following table describes the props that can be passed to the component for customization:

PropTypeDescription
modelValueString/NumberThe v-model binding for the input value.
typeValueStringThe type of the input field. Possible values: "string", "number", "password".
placeValueStringThe placeholder text for the input field.
backgroundColorStringThe background color of the input field.
borderRadiusStringThe border radius of the input field.
colorStringThe text color of the input field.
borderColorStringThe border color of the input field.
focusBorderColorStringThe border color of the input field when it is focused.
focusBackgroundColorStringThe background color of the input field when it is focused.
minLengthStringThe minimum length of the input value.
maxLengthStringThe maximum length of the input value.
patternStringA regular expression pattern for input validation.
minWidthStringThe minimum width of the input field.
maxWidthStringThe maximum width of the input field.
widthStringThe width of the input field.
heightStringThe height of the input field.
minHeightStringThe minimum height of the input field.
maxHeightStringThe maximum height of the input field.

Example

<template>
  <VInput
    v-model="inputValue"
    typeValue="text"
    placeValue="Enter your name"
    backgroundColor="#f2f2f2"
    borderRadius="5px"
    color="#333"
    borderColor="#ccc"
    focusBorderColor="red"
    focusBackgroundColor="#fff"
    minLength="2"
    maxLength="20"
    pattern="[a-zA-Z]+"
    minWidth="200px"
    maxWidth="500px"
    width="100%"
    height="40px"
    minHeight="40px"
    maxHeight="60px"
  ></VInput>
</template>

<script>
import { VInput } from 'vue-dynamic-input-component';
## Props

License

This project is licensed under the MIT License.


0.1.6

11 months ago

0.1.5

11 months ago

0.1.4

11 months ago

0.1.3

11 months ago

0.1.2

11 months ago

0.1.1

11 months ago

0.1.0

11 months ago

0.0.9

11 months ago

0.0.8

11 months ago

0.0.7

11 months ago

0.0.5

11 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago

0.0.0

11 months ago