List example

Unordered list with bullet points

An unordered list with visible bullet points.

How it looks (preview)

  • Tony’s Chocolonely
  • Cherry Ripe
  • Snickers
  • Chomp
  • Penguin
  • Boost

How to call this example

<%= render "govuk_publishing_components/components/list", {
  visible_counters: true,
  items: [
    sanitize("Tony&rsquo;s Chocolonely"),
    sanitize("<a href=\"https://en.wikipedia.org/wiki/Cherry_Ripe_(chocolate_bar)\" rel=\"noopener\" class=\"govuk-link\">Cherry Ripe</a>"),
    "Snickers",
    "Chomp",
    "Penguin",
    "Boost"
  ]
} %>