Previews

No matching results.

x
1
2
3
4
<div class="cfa-stack-sm">
<label class="label block" for="form_component_preview_test_model_first_name">First name</label>
<input class="w-full max-w-sm" aria-required="true" type="text" value="Mike" name="form_component_preview_test_model[first_name]" id="form_component_preview_test_model_first_name" />
</div>
1
2
custom_model = TestModel.new(first_name: "Mike")
render(InputComponent.new(form: form(model: custom_model), method: :first_name, label: I18n.t("preview.first_name")))