<div class="position-relative">
    {% include "django/forms/widgets/textarea.html" %}
    <button type="button" class="btn btn-danger btn-sm clear-input-button" style="position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: none;">×</button>
</div>