vue-itextarea

Use tab to indent in textareas (tab got automatically replaced by spaces). Escape to unfocus or move to the next sibling.

Usage no npm install needed!

<script type="module">
  import vueItextarea from 'https://cdn.skypack.dev/vue-itextarea';
</script>

README

Textarea with tab indentation

npm MIT    Twitter Follow

Use tab to indent in textareas (tab got automatically replaced by spaces). Escape to unfocus or move to the next sibling.

Demo

Installation

NPM

npm i vue-itextarea

CDN

<script src="https://www.unpkg.com/vue-itextarea/dist/vue-itextarea.min.js"></script>

Usage

import vue_itextarea from 'vue-itextarea';
Vue.component('vue-itextarea', vue_itextarea);
<vue-itextarea v-model="demo"
               class="demo"
               placeholder="Demo"
></vue-itextarea>

Properties

Name Type Default Description
value value for v-model
TAB_SIZE Number 4 Number of spaces tab got automatically replaced by

Events

Name Description
input Input event for v-model

License

The MIT License (MIT). Please see License File for more information.