<#macro kw invalid name autofocus=false disabled=false message=true required=true rest...> autofocus <#if disabled>disabled <#if required>required aria-invalid="${messagesPerField.existsError(invalid)?c}" class="block border-gray-300 mt-1 rounded-md w-full focus:border-primary-300 focus:ring focus:ring-primary-200 focus:ring-opacity-50 sm:text-sm" id="${name}" name="${name}" placeholder="<#compress><#nested>" <#list rest as attrName, attrValue> ${attrName}="${attrValue}" > <#if message && messagesPerField.existsError(invalid)>
${kcSanitize(messagesPerField.getFirstError(invalid))?no_esc}