Option select: With option pre checked

A scrollable list of checkboxes to be displayed on a form where one might otherwise use a multi-select

How to call this component

<%= render partial: 'govuk_component/option_select', locals: { key: "with_checked_value_set", title: "List of options", options_container_id: "list_of_vegetables", options: [ { value: "potatoes", label: "Potatoes", name: "potatoes", checked: true }, { value: "carrots", label: "Carrots", id: "carrots" }, { value: "mash", label: "Mash", id: "mash" } ], option_select: null } %>

How this component looks

List of options