Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 778 Bytes

list.md

File metadata and controls

29 lines (21 loc) · 778 Bytes

< Back to Components List

List

polaris-list implements the Polaris List component. This component should be used in block form to access the list.item component, as in the examples below.

Examples

Default (bulleted) list (this can also be achieved by explicitly passing type="bullet" to the polaris-list):

{{#polaris-list as |list|}}
  {{list.item text="Point one (inline form)"}}

  {{#list.item}}
    Second point (block form)
  {{/list.item}}
{{/polaris-list}}

Numbered list iterating over a numberedItems array:

{{#polaris-list type="number" as |list|}}
  {{#each numberedItems as |item|}}
    {{list.item text=item}}
  {{/each}}
{{/polaris-list}}