Previews

No matching results.

x
1
2
3
4
5
6
7
8
9
10
<div class="form-field-wrapper">
<label for="readonly_field" class="block font-medium text-gray-700 mb-1 text-sm">
Readonly Field
</label>
<div class="relative flex items-center">
<textarea name="readonly_field" value="View only content.
You can read but not edit this." readonly="readonly" class="block w-full rounded-md border shadow-sm transition-colors duration-200 text-base py-2 px-4 border-gray-300 bg-gray-50 text-gray-700 cursor-default resize-y" rows="4">View only content.
You can read but not edit this.</textarea>
</div>
</div>
1
2
3
4
5
6
render BetterUi::Forms::TextareaComponent.new(
name: "readonly_field",
label: "Readonly Field",
value: "View only content.\nYou can read but not edit this.",
readonly: true
)