- autocomplete = properties[:autocomplete]
- tooltip = properties[:tooltip]
- type = properties[:type] || 'text'
%input.input{ class: "input--#{type} #{!tooltip.nil? ? 'tooltip--focus' : ''} #{!autocomplete.nil? ? ('js-autocomplete-' + autocomplete) : ''}",
             id: properties[:id], name: properties[:name], value: properties[:value] || "", type: type, placeholder: properties[:placeholder], data: properties[:data], maxlength: properties[:maxlength]}

= render :partial => 'components/forms/partials/tooltip', :locals => { tooltip: tooltip }

- autocomplete = properties[:autocomplete]
- tooltip = properties[:tooltip]
- type = properties[:type] || 'text'
%input.input{ class: "input--#{type} #{!tooltip.nil? ? 'tooltip--focus' : ''} #{!autocomplete.nil? ? ('js-autocomplete-' + autocomplete) : ''}",
             id: properties[:id], name: properties[:name], value: properties[:value] || "", type: type, placeholder: properties[:placeholder], data: properties[:data], maxlength: properties[:maxlength], required: properties[:required] || false}

= render :partial => 'components/forms/partials/tooltip', :locals => { tooltip: tooltip }

Allow text inputs to be required
Allow text inputs to be required
