Previews

No matching results.

x
1
2
3
4
5
6
7
8
<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">
<input name="readonly_field" value="View only" 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" type="text" />
</div>
</div>
1
2
3
4
5
6
render BetterUi::Forms::TextInputComponent.new(
name: "readonly_field",
label: "Readonly Field",
value: "View only",
readonly: true
)