%# locals: (name:, label:, value: nil, input_type: "text", required: false, autocomplete: nil, minlength: nil, id: nil) %> <% field_id = local_assigns.fetch(:id, nil).presence || name.to_s %> <% visible_type = local_assigns.fetch(:input_type, "text").to_s == "email" ? "email" : "text" %>