Sha256: 13a0ba7ea9d49d4a3b116de0f4dbf2ad1f2af2ce9cfbc3d5f413aa9c62fa5a44

Contents?: true

Size: 433 Bytes

Versions: 9

Compression:

Stored size: 433 Bytes

Contents

<%
  add_gem_component_stylesheet("lead-paragraph")

  text ||= ""
  inverse ||= false

  component_helper = GovukPublishingComponents::Presenters::ComponentWrapperHelper.new(local_assigns)
  component_helper.add_class("gem-c-lead-paragraph")
  component_helper.add_class("gem-c-lead-paragraph--inverse") if inverse
%>
<% if text.present? %>
  <%= tag.p(**component_helper.all_attributes) do %>
    <%= text %>
  <% end %>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
govuk_publishing_components-51.1.0 app/views/govuk_publishing_components/components/_lead_paragraph.html.erb
govuk_publishing_components-51.0.0 app/views/govuk_publishing_components/components/_lead_paragraph.html.erb
govuk_publishing_components-50.0.1 app/views/govuk_publishing_components/components/_lead_paragraph.html.erb
govuk_publishing_components-50.0.0 app/views/govuk_publishing_components/components/_lead_paragraph.html.erb
govuk_publishing_components-49.1.0 app/views/govuk_publishing_components/components/_lead_paragraph.html.erb
govuk_publishing_components-49.0.0 app/views/govuk_publishing_components/components/_lead_paragraph.html.erb
govuk_publishing_components-48.0.0 app/views/govuk_publishing_components/components/_lead_paragraph.html.erb
govuk_publishing_components-47.0.0 app/views/govuk_publishing_components/components/_lead_paragraph.html.erb
govuk_publishing_components-46.4.0 app/views/govuk_publishing_components/components/_lead_paragraph.html.erb