1. Government Frontend Component Guide
  2. Contents list
  3. Without a title
Contents list example

Without a title

The component can be used to provide a list of links to other pages, in which case the ‘Contents’ title is inappropriate and can be removed.

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/contents_list", {
  hide_title: true,
  contents: [
      href: "#first-thing",
      text: "Community best practice",
      items: [
          href: "#second-thing",
          text: "Guidance and regulation"
          href: "#third-thing",
          text: "Consultations"
} %>