Shopware Design

Textarea

Source

Usage

Textarea is a multi-line input for notes, descriptions, comments, or other longer free-form text in a form. Use it when users need more space than a single-line field should provide, and when line breaks and longer written input are part of the value.

import { MtTextarea } from "@shopware-ag/meteor-component-library";

Examples

Disabled

Error

Hint

API reference

Props

PropTypeDefault
requiredboolean
disabledboolean
namestring
labelstring
placeholderstring
error{ detail: string; }
help-textstring
max-lengthnumber
is-inheritedboolean
is-inheritance-fieldboolean
model-valuestring

Events

EventPayload
update:modelValue[value: string | undefined]
change[string | undefined]
inheritance-remove[]
inheritance-restore[]
focus[]
blur[]

Slots

SlotBindings
hint{}

Best practices

Do
  • Use a clear visible label that explains what kind of content belongs in the field.
  • Add help text or hint content when users need guidance about tone, length, or formatting.
  • Use maxLength when the content length matters and should stay visible.
Don't
  • Do not use Textarea for short single-line values.
  • Do not rely on the placeholder as the only instruction.
  • Do not use it when a more structured input would guide users better.

Behavior

  • Textarea supports shared field patterns such as hint, helpText, error, and inheritance handling.
  • The field can grow vertically because resizing is enabled for the text area itself.
  • maxLength shows a live character counter when the content length matters.

Accessibility

  • Always provide a visible label so users understand what longer text is expected.
  • Use clear length guidance when the field has a maximum character limit.
  • Text Field: when the value should stay short and single-line.