Skip to content

Textarea

A text input component for inline text editing that expands automatically!

Example Usage

Example


Value:
vue
<template>
  <sk-textarea v-model="value" placeholder="Schreibe hier..." /><br />

  <h2 class="mb-l">
    <sk-textarea v-model="value" placeholder="Antwort in groß hier..." />
  </h2>

  Value:
  <pre><code>{{ value }}</code></pre>
</template>

<script setup>
import { ref } from 'vue';
const value = ref('');
</script>

Reference

Properties

NameTypeDefaultDescription
v-modelrefnullThe value to edit
placeholderString''The empty state of the input, displayed greyed out

Events

NameParametersDescription
@inputeventthe payload of the input
@blureventthe payload of the input