Skip to content

KTextarea

Basic Textarea

Auto Resize

Character Count

0 / 120

Error State

Message is required.

Disabled State

Multi-line textarea with v-model binding and optional auto-resize.

Props

NameTypeDefaultDescription
modelValuestring''Bound value via v-model.
placeholderstring''Placeholder text.
disabledbooleanfalseWhether the textarea is disabled.
errorbooleanfalseWhether to show error styling (destructive border).
maxlengthnumberMaximum number of characters allowed.
autoResizebooleanfalseWhether the textarea automatically resizes to fit content.
rowsnumberNative textarea rows attribute for fixed-height layouts.

Emits

NameParametersDescription
update:modelValue(value: string)Emitted when the textarea value changes.

Basic Usage

vue
<script setup>
import { ref } from 'vue'
import { KTextarea } from '@kK-2004/ui-component'

const text = ref('')
</script>

<template>
  <KTextarea v-model="text" placeholder="Type something..." auto-resize />
</template>