Sha256: 5d453e05f8e75e606b3fba124529d80c6e0990a14408082961c22b71a37e7f4d

Contents?: true

Size: 789 Bytes

Versions: 46

Compression:

Stored size: 789 Bytes

Contents

<%= content_tag(:div, **@input.validation_arguments) do %>
  <span class="FormControl-inlineValidation--visual" data-target="<%= @input.validation_success_icon_target %>" hidden><%= render(Ariadne::UI::Heroicon::Component.new(icon: :"check-circle", variant: HeroiconsHelper::Icon::VARIANT_SOLID, size: :xs, html_attrs: { aria: { hidden: true }})) %></span>
  <span class=" FormControl-inlineValidation--visual" data-target="<%= @input.validation_error_icon_target %>"><%= render(Ariadne::UI::Heroicon::Component.new(icon: :"exclamation-triangle", variant: HeroiconsHelper::Icon::VARIANT_SOLID, size: :xs, html_attrs: { aria: { hidden: true }})) %></span>
  <%= content_tag(:span, @input.invalid? ? @input.validation_messages.first : "", **@input.validation_message_arguments) %>
<% end %>

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.92 app/components/ariadne/form/validation_message/component.html.erb
ariadne_view_components-0.0.91 app/components/ariadne/form/validation_message/component.html.erb
ariadne_view_components-0.0.90 app/components/ariadne/form/validation_message/component.html.erb
ariadne_view_components-0.0.89.1 app/components/ariadne/form/validation_message/component.html.erb
ariadne_view_components-0.0.89 app/components/ariadne/form/validation_message/component.html.erb
ariadne_view_components-0.0.88 app/components/ariadne/form/validation_message/component.html.erb
ariadne_view_components-0.0.87 app/components/ariadne/form/validation_message/component.html.erb
ariadne_view_components-0.0.86.9 app/components/ariadne/form/validation_message/component.html.erb
ariadne_view_components-0.0.86.8 app/components/ariadne/form/validation_message/component.html.erb
ariadne_view_components-0.0.86.7 app/components/ariadne/form/validation_message/component.html.erb
ariadne_view_components-0.0.86.6 app/components/ariadne/form/validation_message/component.html.erb
ariadne_view_components-0.0.86.5 app/components/ariadne/form/validation_message/component.html.erb
ariadne_view_components-0.0.86.4 app/components/ariadne/form/validation_message/component.html.erb
ariadne_view_components-0.0.86.3 app/components/ariadne/form/validation_message/component.html.erb
ariadne_view_components-0.0.86.2 app/components/ariadne/form/validation_message/component.html.erb
ariadne_view_components-0.0.86.1 app/components/ariadne/form/validation_message/component.html.erb
ariadne_view_components-0.0.86 app/components/ariadne/form/validation_message/component.html.erb
ariadne_view_components-0.0.85 app/components/ariadne/form/validation_message/component.html.erb
ariadne_view_components-0.0.84 app/components/ariadne/form/validation_message/component.html.erb
ariadne_view_components-0.0.83.3 app/components/ariadne/form/validation_message/component.html.erb