List Groups

Based on Bootstrap List Group.

Basic example

  • Cras justo odio
  • Dapibus ac facilisis in
  • Morbi leo risus
  • Vestibulum at eros

<abp-list-group>
    <abp-list-group-item>Cras justo odio</abp-list-group-item>
    <abp-list-group-item>Dapibus ac facilisis in</abp-list-group-item>
    <abp-list-group-item>Morbi leo risus</abp-list-group-item>
    <abp-list-group-item>Vestibulum at eros</abp-list-group-item>
</abp-list-group>

<ul class="list-group">
  <li class="list-group-item">Cras justo odio</li>
  <li class="list-group-item">Dapibus ac facilisis in</li>
  <li class="list-group-item">Morbi leo risus</li>
  <li class="list-group-item">Porta ac consectetur ac</li>
</ul>

Active & disabled items

  • Cras justo odio
  • Dapibus ac facilisis in
  • Morbi leo risus
  • Vestibulum at eros

<abp-list-group>
    <abp-list-group-item>Cras justo odio</abp-list-group-item>
    <abp-list-group-item active="true">Dapibus ac facilisis in</abp-list-group-item>
    <abp-list-group-item>Morbi leo risus</abp-list-group-item>
    <abp-list-group-item disabled="true">Vestibulum at eros</abp-list-group-item>
</abp-list-group>

<ul class="list-group">
  <li class="list-group-item active">Cras justo odio</li>
  <li class="list-group-item">Dapibus ac facilisis in</li>
  <li class="list-group-item">Morbi leo risus</li>
  <li class="list-group-item disabled">Porta ac consectetur ac</li>
</ul>

Links and buttons


<abp-list-group>
    <abp-list-group-item href="#" active="true">Cras justo odio</abp-list-group-item>
    <abp-list-group-item href="#">Dapibus ac facilisis in</abp-list-group-item>
    <abp-list-group-item href="#">Morbi leo risus</abp-list-group-item>
    <abp-list-group-item href="#" disabled="true">Vestibulum at eros</abp-list-group-item>
</abp-list-group>

<div class="list-group">
  <a href="#" class="list-group-item list-group-item-action active">Cras justo odio</a>
  <a href="#" class="list-group-item list-group-item-action">Dapibus ac facilisis in</a>
  <a href="#" class="list-group-item list-group-item-action">Morbi leo risus</a>
  <a href="#" class="list-group-item list-group-item-action disabled">Vestibulum at eros</a>
</div>

<abp-list-group>
    <abp-list-group-item tag-type="Button" active="true">Cras justo odio</abp-list-group-item>
    <abp-list-group-item tag-type="Button">Dapibus ac facilisis in</abp-list-group-item>
    <abp-list-group-item tag-type="Button">Morbi leo risus</abp-list-group-item>
    <abp-list-group-item tag-type="Button">Vestibulum at eros</abp-list-group-item>
</abp-list-group>

<div class="list-group">
  <button type="button" class="list-group-item list-group-item-action active">
    Cras justo odio
  </button>
  <button type="button" class="list-group-item list-group-item-action">Morbi leo risus</button>
  <button type="button" class="list-group-item list-group-item-action">Porta ac consectetur ac</button>
  <button type="button" class="list-group-item list-group-item-action" disabled>Vestibulum at eros</button>
</div>

Flush

  • Cras justo odio
  • Dapibus ac facilisis in
  • Morbi leo risus
  • Vestibulum at eros

<abp-list-group flush="true">
    <abp-list-group-item>Cras justo odio</abp-list-group-item>
    <abp-list-group-item>Dapibus ac facilisis in</abp-list-group-item>
    <abp-list-group-item>Morbi leo risus</abp-list-group-item>
    <abp-list-group-item>Vestibulum at eros</abp-list-group-item>
</abp-list-group>

<ul class="list-group list-group-flush">
  <li class="list-group-item">Cras justo odio</li>
  <li class="list-group-item">Dapibus ac facilisis in</li>
  <li class="list-group-item">Morbi leo risus</li>
  <li class="list-group-item">Vestibulum at eros</li>
</ul>

Contextual classes

  • Cras justo odio
  • A simple Primary list group item
  • A simple Secondary list group item
  • A simple Success list group item
  • A simple Danger list group item
  • A simple Warning list group item
  • A simple Info list group item
  • A simple Light list group item
  • A simple Dark list group item

<abp-list-group>
    <abp-list-group-item>Cras justo odio</abp-list-group-item>
    <abp-list-group-item type="Primary">A simple Primary list group item</abp-list-group-item>
    <abp-list-group-item type="Secondary">A simple Secondary list group item</abp-list-group-item>
    <abp-list-group-item type="Success">A simple Success list group item</abp-list-group-item>
    <abp-list-group-item type="Danger">A simple Danger list group item</abp-list-group-item>
    <abp-list-group-item type="Warning">A simple Warning list group item</abp-list-group-item>
    <abp-list-group-item type="Info">A simple Info list group item</abp-list-group-item>
    <abp-list-group-item type="Light">A simple Light list group item</abp-list-group-item>
    <abp-list-group-item type="Dark">A simple Dark list group item</abp-list-group-item>
</abp-list-group>

<ul class="list-group">
  <li class="list-group-item">Dapibus ac facilisis in</li>
  <li class="list-group-item list-group-item-primary">A simple primary list group item</li>
  <li class="list-group-item list-group-item-secondary">A simple secondary list group item</li>
  <li class="list-group-item list-group-item-success">A simple success list group item</li>
  <li class="list-group-item list-group-item-danger">A simple danger list group item</li>
  <li class="list-group-item list-group-item-warning">A simple warning list group item</li>
  <li class="list-group-item list-group-item-info">A simple info list group item</li>
  <li class="list-group-item list-group-item-light">A simple light list group item</li>
  <li class="list-group-item list-group-item-dark">A simple dark list group item</li>
</ul>

<abp-list-group>
    <abp-list-group-item href="#">Cras justo odio</abp-list-group-item>
    <abp-list-group-item href="#" type="Primary">A simple Primary list group item</abp-list-group-item>
    <abp-list-group-item href="#" type="Secondary">A simple Secondary list group item</abp-list-group-item>
    <abp-list-group-item href="#" type="Success">A simple Success list group item</abp-list-group-item>
    <abp-list-group-item href="#" type="Danger">A simple Danger list group item</abp-list-group-item>
    <abp-list-group-item href="#" type="Warning">A simple Warning list group item</abp-list-group-item>
    <abp-list-group-item href="#" type="Info">A simple Info list group item</abp-list-group-item>
    <abp-list-group-item href="#" type="Light">A simple Light list group item</abp-list-group-item>
    <abp-list-group-item href="#" type="Dark">A simple Dark list group item</abp-list-group-item>
</abp-list-group>

<div class="list-group">
  <a href="#" class="list-group-item list-group-item-action">Dapibus ac facilisis in</a>
  <a href="#" class="list-group-item list-group-item-action list-group-item-primary">A simple primary list group item</a>
  <a href="#" class="list-group-item list-group-item-action list-group-item-secondary">A simple secondary list group item</a>
  <a href="#" class="list-group-item list-group-item-action list-group-item-success">A simple success list group item</a>
  <a href="#" class="list-group-item list-group-item-action list-group-item-danger">A simple danger list group item</a>
  <a href="#" class="list-group-item list-group-item-action list-group-item-warning">A simple warning list group item</a>
  <a href="#" class="list-group-item list-group-item-action list-group-item-info">A simple info list group item</a>
  <a href="#" class="list-group-item list-group-item-action list-group-item-light">A simple light list group item</a>
  <a href="#" class="list-group-item list-group-item-action list-group-item-dark">A simple dark list group item</a>
</div>

With badges

  • Cras justo odio 14
  • Dapibus ac facilisis in 2
  • Morbi leo risus 1

<abp-list-group>
    <abp-list-group-item>Cras justo odio <span abp-badge-pill="Primary">14</span></abp-list-group-item>
    <abp-list-group-item>Dapibus ac facilisis in <span abp-badge-pill="Primary">2</span></abp-list-group-item>
    <abp-list-group-item>Morbi leo risus <span abp-badge-pill="Primary">1</span></abp-list-group-item>
</abp-list-group>

<ul class="list-group">
  <li class="list-group-item">
    Cras justo odio
    <span class="badge badge-primary badge-pill">14</span>
  </li>
  <li class="list-group-item">
    Dapibus ac facilisis in
    <span class="badge badge-primary badge-pill">2</span>
  </li>
  <li class="list-group-item">
    Morbi leo risus
    <span class="badge badge-primary badge-pill">1</span>
  </li>
</ul>