manu-sapiens's picture
copy of omnitool_latest - should be working
b39afbe
raw
history blame
907 Bytes
<div class="input-control-div">
<label
:for="controlUid"
class="sr-only text-xs text-gray-400"
x-text="title"
></label>
</div>
<div class="input-control-div">
<textarea
x-data="inputUtils"
x-init="textareaAutoResize($el)"
@input="textareaAutoResize($el)"
:id="controlUid"
:disabled="opts.readonly"
:value="value"
:placeholder="opts.placeholder || title"
@blur="change($event)"
@dblclick.stop="$event"
@pointerdown.stop="$event"
@pointermove.stop="$event"
@paste.stop="$event"
class="text-sm bg-white border rounded-md border-neutral-300 ring-offset-background placeholder:text-neutral-500 focus:border-neutral-300 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-neutral-400 disabled:cursor-not-allowed disabled:opacity-50 "
:class="{
'ring-red-300 ring-2': required && !hasValue(),
} "
/>
</div>