Sha256: 9db584983bdb158d9d566933a217d56e43e6334b4a5688df6d789e474b30fb0b

Contents?: true

Size: 719 Bytes

Versions: 8

Compression:

Stored size: 719 Bytes

Contents

<span class="ariadne-inline-flex ariadne-items-center ariadne-gap-2">
  <span><%= text %></span>
  <kbd data-controller='<%= stimulus_name %>' <%= html_attributes %>>
  <% keys.each_with_index do |key, index| %>
    <% if special_keys.include? key.downcase %>
      <kbd
        class="<%= html_attrs[:class] %>"
        data-<%= stimulus_name %>-target="<%= key.downcase %>">
    <%= key.capitalize %>
  </kbd>
<% elsif key.downcase == 'enter' %>
  <kbd class="<%= html_attrs[:class] %> !ariadne-font-fallback">↵</kbd>
<% else %>
  <kbd class="<%= html_attrs[:class] %> ariadne-uppercase"><%= key %></kbd>
<% end %>
<% if index != keys.size - 1 %>
  <span class="sr-only">+</span>
<% end %>
<% end %>
</kbd>
</span>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.93.2 app/components/ariadne/ui/shortcut/component.html.erb
ariadne_view_components-0.0.93.1 app/components/ariadne/ui/shortcut/component.html.erb
ariadne_view_components-0.0.93 app/components/ariadne/ui/shortcut/component.html.erb
ariadne_view_components-0.0.92 app/components/ariadne/ui/shortcut/component.html.erb
ariadne_view_components-0.0.91 app/components/ariadne/ui/shortcut/component.html.erb
ariadne_view_components-0.0.90 app/components/ariadne/ui/shortcut/component.html.erb
ariadne_view_components-0.0.89.1 app/components/ariadne/ui/shortcut/component.html.erb
ariadne_view_components-0.0.89 app/components/ariadne/ui/shortcut/component.html.erb