{# v-on="$listeners" needed becaues vue/compat removes them from $attrs #}
{# New mt-textarea component #}
<mt-textarea
    v-if="useMeteorComponent"
    v-bind="$attrs"
    v-model="realValue"
    :placeholder="placeholder"
    v-on="listeners"
>
    <template
        v-for="(index, name) in getSlots()"
        #[name]="data"
    >
        <slot
            :name="name"
            v-bind="data || {}"
        >
        </slot>
    </template>
</mt-textarea>

{# v-on="$listeners" needed becaues vue/compat removes them from $attrs #}
{# Deprecated component #}
<sw-textarea-field-deprecated
    v-else
    v-bind="$attrs"
    v-model:value="realValue"
    :value="value"
    :placeholder="placeholder"
    v-on="listeners"
>
    <template
        v-for="(index, name) in getSlots()"
        #[name]="data"
    >
        <slot
            :name="name"
            v-bind="data || {}"
        >
        </slot>
    </template>
</sw-textarea-field-deprecated>
