0.1.2 • Published 2 years ago

v-resizable-input v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Vue Resizable Input

npm npm vue2

An simple customizable input for vue that resizes itself to the its content.

npm.io

🛠️ Getting started

Installation

NPM

$ npm i -S v-resizable-input

Yarn

$ yarn add v-resizable-input

Import the component

import ResizableInput from "v-resizable-input"
components: {
  ResizableInput,
}

Usage

<resizable-input
    v-model="title"
    :max="40"
    :row="1"
    :placeholder="'Enter you title here ...'"
    :enterable="false"/>

Interface

Props

PropsRequiredTypeDefaultDescription
v-modelnoString, Number''value binding
valuenoString, Number''part of the v-model binding
maxnoNumber100max textarea characters
rownoNumber1number of min rows for your textarea
placeholdernoString"Enter your text ..."placeholder for your textarea
enterablenoBooleantrueallows to accept enter on textarea
hasHelpernoBooleantrueindicate how much characters feasible
inputCssnoString'tailwind classes'as default it use tailwind css classes but you can fully customize its style
helperCssnoString'tailwind classes'as default it use tailwind css classes but you can fully customize its style

Events

NameParamsDescription
inputvaluefires on textarea content changed. part of the v-model binding. read more

Slots

There are no slots available

License

MIT