<%= erb :"components/icon", :locals => {comp: comp.icon, class_name: 'mdc-text-field__icon',
parent_id: "#{comp.id}-input"} %>
<%= 'invalid' if comp.error %>
<%= "pattern='#{comp.pattern}'" if comp.pattern %>
<%= 'readonly' if comp.readonly %>
list="<%= comp.id %>-list"
<%= erb :"components/event", :locals => {events: comp.events, parent_id: "#{comp.id}-input"} %>>
<%= erb :"components/icon", :locals => {comp: comp.clear_icon, class_name: 'v-datetime--clear mdc-text-field__icon',
parent_id: "#{comp.id}-input"} %>