Sha256: 3cd15325cbe71d25ed9d1bbbbaa4f64841820e0c40d908fe3e8a3528ebfb0885

Contents?: true

Size: 531 Bytes

Versions: 4

Compression:

Stored size: 531 Bytes

Contents

<%
  add_gem_component_stylesheet("inset-text")

  id ||= "inset-text-#{SecureRandom.hex(4)}"
  local_assigns[:margin_bottom] ||= 6

  component_helper = GovukPublishingComponents::Presenters::ComponentWrapperHelper.new(local_assigns)
  component_helper.add_class("gem-c-inset-text govuk-inset-text gem-c-force-print-link-styles-within")
  component_helper.set_id(id)
%>
<%= tag.div(**component_helper.all_attributes) do %>
  <% if defined? text %>
    <%= text %>
  <% elsif block_given? %>
    <%= yield %>
  <% end %>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
govuk_publishing_components-51.1.0 app/views/govuk_publishing_components/components/_inset_text.html.erb
govuk_publishing_components-51.0.0 app/views/govuk_publishing_components/components/_inset_text.html.erb
govuk_publishing_components-50.0.1 app/views/govuk_publishing_components/components/_inset_text.html.erb
govuk_publishing_components-50.0.0 app/views/govuk_publishing_components/components/_inset_text.html.erb