1. Collections Component Guide
  2. Document list
  3. With description
Document list example

With description

Documents can be passed to the component with a description. This is for use on topic pages, to display lists of mainstream services.

How it looks (preview)

  • Become an apprentice

    Becoming an apprentice - what to expect, apprenticeship levels, pay and training, making an application, complaining about an apprenticeship.

  • Become a journeyman

    Becoming a journeyman - what to expect, what to take, pay and training, making an application, complaining about being a journeyman.

How to call this example

<%= render "govuk_publishing_components/components/document_list", {
  items: [
    {
      link: {
        text: "Become an apprentice",
        path: "/become-an-apprentice",
        description: "Becoming an apprentice - what to expect, apprenticeship levels, pay and training, making an application, complaining about an apprenticeship."
      }
    },
    {
      link: {
        text: "Become a journeyman",
        path: "/become-a-journeyman",
        description: "Becoming a journeyman - what to expect, what to take, pay and training, making an application, complaining about being a journeyman."
      }
    }
  ]
} %>