x
1
2
3
4
5
<ol class="Polaris-List Polaris-List--typeNumber Polaris-List--spacingLoose"> <li class="Polaris-List__Item">First item</li> <li class="Polaris-List__Item">Second item</li> <li class="Polaris-List__Item">Third item</li></ol>
1
2
3
4
5
<%= polaris_list(type: :number) do |list| %> <% list.with_item { "First item" } %> <% list.with_item { "Second item" } %> <% list.with_item { "Third item" } %><% end %>
Use for a text-only list of related items when an inherent order, priority, or sequence needs to be communicated.
No params configured.