<% class_name = '' unless bound_locals_include?(:class_name, binding) %>
data-input-tag="<%= comp.input_tag %>"<% end %> <% if comp.dirtyable %>data-dirtyable<% end %> class="v-switch v-input mdc-switch <%= 'mdc-switch--disabled' if comp.disabled %> <%= class_name %>">
value="<%= comp.value %>"<% end %> data-off="<%= comp.off_value %>" <%= ' checked ' if comp.checked %> <%= ' disabled ' if comp.disabled %> <%= partial "components/event", :locals => {comp: comp, events: comp.events, parent_id: comp.event_parent_id} if comp.events&.any? %>/>
<%= partial "components/tooltip", :locals => {comp: comp.tooltip, parent_id: comp.id} if comp.tooltip %>