{#- chirp-ui: List component Vertical layout for rows of information. Use list_item() for custom content, or list(items) for simple text rows. Usage: {% from "chirpui/list.html" import list, list_item %} {% call list_group() %} {% call list_item() %}Row one{% end %} {% call list_item() %}Row two{% end %} {% end %} list_group(["Item 1", "Item 2", "Item 3"]) list_group([{"label": "A", "href": "/a"}, {"label": "B"}], linked=true) -#} {% def list_group(items=none, linked=false, bordered=false, cls="") %} {% set bordered_class = " chirpui-list--bordered" if bordered else "" %} {% if items is not none %} {% else %} {% end %} {% end %} {% def list_item(cls="") %}
  • {% slot %}
  • {% end %}