Previews

No matching results.

x
1
2
3
4
5
6
7
8
<div class="form-field-wrapper">
<div class="flex items-start flex-row gap-2.5">
<input type="checkbox" id="disabled_option" name="disabled_option" value="1" checked="checked" disabled="disabled" class="appearance-none shrink-0 rounded border transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 w-5 h-5 border-gray-300 checked:bg-primary-600 checked:border-primary-600 focus:ring-primary-500 bg-gray-100 cursor-not-allowed opacity-60" />
<label for="disabled_option" class="select-none text-gray-400 cursor-not-allowed text-sm">
This option is disabled
</label>
</div>
</div>
1
2
3
4
5
6
render BetterUi::Forms::CheckboxComponent.new(
name: "disabled_option",
label: "This option is disabled",
disabled: true,
checked: true
)