Sha256: a1aeb41cb62421ad75ed9aa94f4097e7193e671136ebd95fba97a0f1f89afc42

Contents?: true

Size: 454 Bytes

Versions: 1

Compression:

Stored size: 454 Bytes

Contents

<%
  base_class = "button-inline".freeze

  # Optional props
  disabled = local_assigns.fetch(:disabled, false)
  id = local_assigns.fetch(:id, false)
  name = local_assigns.fetch(:name, nil)
  type = local_assigns.fetch(:type, 'button')

  # Classes
  class_names = [base_class]
  class_names = class_names.join(" ")
%>

<%= button_tag(
  class: class_names,
  disabled: disabled,
  id: id,
  name: name,
  type: type
) do %>
  <%= content %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_starter_frontend-0.1.0 app/views/spree/components/buttons/_button_inline.html.erb