Sha256: 5ac2571bf01091c7c4121fb07253207f00dbd16d935063f27bf5ecf4cc3c2f08

Contents?: true

Size: 352 Bytes

Versions: 6

Compression:

Stored size: 352 Bytes

Contents

<% button = GovukPublishingComponents::Presenters::ButtonHelper.new(local_assigns) %>

<% if button.link? %>
  <%= link_to button.text, button.href, button.html_options %>
<% else %>
  <%= button_tag button.text, button.html_options %>
<% end %>

<% if button.info_text %>
  <%= tag.span button.info_text, class: "gem-c-button__info-text" %>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
govuk_publishing_components-9.12.1 app/views/govuk_publishing_components/components/_button.html.erb
govuk_publishing_components-9.12.0 app/views/govuk_publishing_components/components/_button.html.erb
govuk_publishing_components-9.11.0 app/views/govuk_publishing_components/components/_button.html.erb
govuk_publishing_components-9.10.0 app/views/govuk_publishing_components/components/_button.html.erb
govuk_publishing_components-9.9.1 app/views/govuk_publishing_components/components/_button.html.erb
govuk_publishing_components-9.9.0 app/views/govuk_publishing_components/components/_button.html.erb