Display a simple list of stacked items or compose a more complex arrangement of elements.
A List item can include various elements, depending on context and intended behavior.
The title describes the list item using a word or phrase. Title is the only required element for a list item.
The default is a simple, unlinked word or phrase that describes the list item.
<ul class="spirit-list">
<li class="spirit-list-item">
<div class="spirit-list-item__content">
<h3 class="spirit-list-item__title"> Washington, DC </h3>
</div>
</li>
</ul>
If the item is an invitation to read more, link the title to the page with more details. Except for conventional patterns familiar to users, such as search results, always reinforce a linked title with a separate action link.
<ul class="spirit-list">
<li class="spirit-list-item">
<div class="spirit-list-item__content">
<h3 class="spirit-list-item__title">
<a class="spirit-list-item__link-title" href="#"> Delaware Chapter </a>
</h3>
<div class="spirit-list-item__links-contain">
<a class="spirit-list-item__link" href="#">View</a>
</div>
</div>
</li>
</ul>
Microcopy supports the item title with additional details.
Use title metadata for important but terse details, such as an donation amount or event date. It is positioned opposite the title on the same row.
<ul class="spirit-list">
<li class="spirit-list-item">
<div class="spirit-list-item__content">
<h3 class="spirit-list-item__title"> Frederick Banting <span class="spirit-list-item__title-meta"> $9999 </span>
</h3>
</div>
</li>
</ul>
Use item metadata to supplement the title with useful structured data, such as a location or date. Each list item (without Caption) can have up to two item metadata fields.
<ul class="spirit-list">
<li class="spirit-list-item">
<div class="spirit-list-item__content">
<h3 class="spirit-list-item__title"> Frederick Banting </h3>
<p class="spirit-list-item__meta">September 13, 2018</p>
</div>
</li>
</ul>
Use item caption to summarize the item. This is useful for lists of articles or press releases.
<ul class="spirit-list">
<li class="spirit-list-item">
<div class="spirit-list-item__content">
<h3 class="spirit-list-item__title"> Distinction in Innovation Award </h3>
<p class="spirit-list-item__caption">JDRF celebrates Sherry and Larry Benaroya’s noteworthy contributions as volunteer supporters with the Distinction in Innovation Award.</p>
</div>
</li>
</ul>
Invite action with one or two links per list item, positioning underneath the item or to the right of the title. Match the first action's link to the title's link.
Use action links underneath the item when the items often have long titles that may wrap. Although the component prevents conflict, it is more aesthetically pleasing to put the links underneath.
<ul class="spirit-list">
<li class="spirit-list-item">
<div class="spirit-list-item__content">
<h3 class="spirit-list-item__title">
<a class="spirit-list-item__link-title" href="#"> Hy-Vee Finishes Strong at JDRF Ride to Cure Diabetes® in La Crosse, WI </a>
</h3>
<div class="spirit-list-item__links-contain">
<a class="spirit-list-item__link" href="#">Read More</a>
<a class="spirit-list-item__link spirit-list-item__link--secondary" href="#">Donate</a>
</div>
</div>
</li>
</ul>
Use action links on the right for single-line list items, when you want to keep the list as compact as possible. Avoid using item metadata with action links on the right.
<ul class="spirit-list">
<li class="spirit-list-item">
<div class="spirit-list-item__content spirit-list-item__content--links-right">
<h3 class="spirit-list-item__title">
<a class="spirit-list-item__link-title" href="#"> Christine Jakubowski </a>
</h3>
<div class="spirit-list-item__links-contain">
<a class="spirit-list-item__link" href="#">View</a>
<a class="spirit-list-item__link spirit-list-item__link--secondary" href="#">Donate</a>
</div>
</div>
</li>
</ul>
Use an ordered list for a leaderboard. Numbers are supplied automatically.
<ol class="spirit-list">
<li class="spirit-list-item">
<div class="spirit-list-item__content">
<h3 class="spirit-list-item__title"> John Hughes </h3>
</div>
</li>
<li class="spirit-list-item">
<div class="spirit-list-item__content">
<h3 class="spirit-list-item__title"> Jeff Weiser </h3>
</div>
</li>
<li class="spirit-list-item">
<div class="spirit-list-item__content">
<h3 class="spirit-list-item__title"> Christine Jakubowski </h3>
</div>
</li>
</ol>
Use an avatar to personalize and differentiate list items. If no image is available, fallback to an icon placeholder.
<ul class="spirit-list">
<li class="spirit-list-item spirit-list-item--avatar">
<div class="spirit-list-item__avatar">
<svg aria-label="user" class="spirit-icon spirit-list-item__icon spirit-icon--user" aria-hidden="true">
<use xlink:href="/icons/spirit.svg#user">
</use>
</svg>
</div>
<div class="spirit-list-item__content">
<h3 class="spirit-list-item__title"> John Hughes </h3>
</div>
</li>
<li class="spirit-list-item spirit-list-item--avatar">
<div class="spirit-list-item__avatar">
<svg aria-label="user" class="spirit-icon spirit-list-item__icon spirit-icon--user" aria-hidden="true">
<use xlink:href="/icons/spirit.svg#user">
</use>
</svg>
</div>
<div class="spirit-list-item__content">
<h3 class="spirit-list-item__title"> Jeff Weiser </h3>
</div>
</li>
<li class="spirit-list-item spirit-list-item--avatar">
<div class="spirit-list-item__avatar">
<figure class="spirit-image" itemprop="image" itemtype="http://schema.org/ImageObject">
<span class="spirit-image__image-wrap ">
<img class="spirit-image__image" src="https://picsum.photos/300/100?image=64" alt="Test Image">
</span>
</figure>
</div>
<div class="spirit-list-item__content">
<h3 class="spirit-list-item__title"> Christine Jakubowski </h3>
</div>
</li>
</ul>
Use icons in lists displaying various types of content to increase scannability and help differentiate list items.
<ul class="spirit-list">
<li class="spirit-list-item spirit-list-item--avatar">
<div class="spirit-list-item__avatar">
<a class="spirit-list-item__link-avatar" href="#">
<svg aria-label="user" class="spirit-icon spirit-list-item__icon spirit-icon--user" aria-hidden="true">
<use xlink:href="/icons/spirit.svg#user">
</use>
</svg>
</a>
</div>
<div class="spirit-list-item__content">
<h3 class="spirit-list-item__title">
<a class="spirit-list-item__link-title" href="#"> Frederick Banting </a>
</h3>
<p class="spirit-list-item__meta">JDRF One Walk, Denver 2018</p>
<div class="spirit-list-item__links-contain">
<a class="spirit-list-item__link" href="#">View Participant</a>
</div>
</div>
</li>
<li class="spirit-list-item spirit-list-item--avatar">
<div class="spirit-list-item__avatar">
<a class="spirit-list-item__link-avatar" href="#">
<svg aria-label="calendar" class="spirit-icon spirit-list-item__icon spirit-icon--calendar" aria-hidden="true">
<use xlink:href="/icons/spirit.svg#calendar">
</use>
</svg>
</a>
</div>
<div class="spirit-list-item__content">
<h3 class="spirit-list-item__title">
<a class="spirit-list-item__link-title" href="#"> JDRF One Walk, Four Rivers 2018 </a>
</h3>
<div class="spirit-list-item__links-contain">
<a class="spirit-list-item__link" href="#">View Event</a>
</div>
</div>
</li>
<li class="spirit-list-item spirit-list-item--avatar">
<div class="spirit-list-item__avatar">
<a class="spirit-list-item__link-avatar" href="#">
<svg aria-label="user" class="spirit-icon spirit-list-item__icon spirit-icon--user" aria-hidden="true">
<use xlink:href="/icons/spirit.svg#user">
</use>
</svg>
</a>
</div>
<div class="spirit-list-item__content">
<h3 class="spirit-list-item__title">
<a class="spirit-list-item__link-title" href="#"> Frederick Sacks </a>
</h3>
<p class="spirit-list-item__meta">JDRF 2019 Saratoga Springs Ride to Cure Diabetes</p>
<div class="spirit-list-item__links-contain">
<a class="spirit-list-item__link" href="#">View Rider</a>
</div>
</div>
</li>
</ul>
Use a photo to differentiate list items and/or to support an item title. Photos can be positioned to the left (default) or right.
<ul class="spirit-list">
<li class="spirit-list-item spirit-list-item--image">
<div class="spirit-list-item__image-contain">
<a class="spirit-list-item__link-image" href="#">
<figure class="spirit-image" itemprop="image" itemtype="http://schema.org/ImageObject">
<span class="spirit-image__image-wrap spirit-image__image-wrap--standard">
<img class="spirit-image__image" src="https://picsum.photos/300/300?image=63" alt="Test Image">
</span>
</figure>
</a>
</div>
<div class="spirit-list-item__content">
<h3 class="spirit-list-item__title">
<a class="spirit-list-item__link-title" href="#"> Ravens rookie tight end Mark Andrews inspires fellow Type 1 diabetics to follow their dreams </a>
</h3>
<p class="spirit-list-item__meta">09/09/2018 – Baltimore Sun</p>
<div class="spirit-list-item__links-contain">
<a class="spirit-list-item__link" href="#">Read More</a>
</div>
</div>
</li>
</ul>
<ul class="spirit-list">
<li class="spirit-list-item spirit-list-item--image spirit-list-item--image--right">
<div class="spirit-list-item__content">
<h3 class="spirit-list-item__title">
<a class="spirit-list-item__link-title" href="#"> How To Organize The Perfect Fundraising Gala </a>
</h3>
<p class="spirit-list-item__meta">08/28/2018 – Forbes</p>
<div class="spirit-list-item__links-contain">
<a class="spirit-list-item__link" href="#">Read More</a>
</div>
</div>
<div class="spirit-list-item__image-contain spirit-list-item__image-contain--right">
<a class="spirit-list-item__link-image" href="#">
<figure class="spirit-image" itemprop="image" itemtype="http://schema.org/ImageObject">
<span class="spirit-image__image-wrap spirit-image__image-wrap--standard">
<img class="spirit-image__image" src="https://picsum.photos/300/300?image=58" alt="Test Image">
</span>
</figure>
</a>
</div>
</li>
</ul>
Lists can be scaled for a variety of scenarios. Scaling only affects the item title, and thus the visual prominence of the list. The default (extra large) is recommended for most situations.
<ul class="spirit-list">
<li class="spirit-list-item spirit-list-item--xl spirit-list-item--image">
<div class="spirit-list-item__image-contain">
<a class="spirit-list-item__link-image" href="#">
<figure class="spirit-image" itemprop="image" itemtype="http://schema.org/ImageObject">
<span class="spirit-image__image-wrap spirit-image__image-wrap--standard">
<img class="spirit-image__image" src="https://picsum.photos/300/300?image=63" alt="Test Image">
</span>
</figure>
</a>
</div>
<div class="spirit-list-item__content">
<h3 class="spirit-list-item__title spirit-list-item__title--xl">
<a class="spirit-list-item__link-title" href="#"> How To Organize The Perfect Fundraising Gala </a>
</h3>
<p class="spirit-list-item__meta">08/28/2018 – Forbes</p>
<div class="spirit-list-item__links-contain">
<a class="spirit-list-item__link" href="#">Read More</a>
</div>
</div>
</li>
</ul>
<ul class="spirit-list">
<li class="spirit-list-item spirit-list-item--l spirit-list-item--image">
<div class="spirit-list-item__image-contain">
<a class="spirit-list-item__link-image" href="#">
<figure class="spirit-image" itemprop="image" itemtype="http://schema.org/ImageObject">
<span class="spirit-image__image-wrap spirit-image__image-wrap--standard">
<img class="spirit-image__image" src="https://picsum.photos/300/300?image=63" alt="Test Image">
</span>
</figure>
</a>
</div>
<div class="spirit-list-item__content">
<h3 class="spirit-list-item__title spirit-list-item__title--l">
<a class="spirit-list-item__link-title" href="#"> How To Organize The Perfect Fundraising Gala </a>
</h3>
<p class="spirit-list-item__meta">08/28/2018 – Forbes</p>
<div class="spirit-list-item__links-contain">
<a class="spirit-list-item__link" href="#">Read More</a>
</div>
</div>
</li>
</ul>
<ul class="spirit-list">
<li class="spirit-list-item spirit-list-item--m spirit-list-item--image">
<div class="spirit-list-item__image-contain">
<a class="spirit-list-item__link-image" href="#">
<figure class="spirit-image" itemprop="image" itemtype="http://schema.org/ImageObject">
<span class="spirit-image__image-wrap spirit-image__image-wrap--standard">
<img class="spirit-image__image" src="https://picsum.photos/300/300?image=63" alt="Test Image">
</span>
</figure>
</a>
</div>
<div class="spirit-list-item__content">
<h3 class="spirit-list-item__title spirit-list-item__title--m">
<a class="spirit-list-item__link-title" href="#"> How To Organize The Perfect Fundraising Gala </a>
</h3>
<p class="spirit-list-item__meta">08/28/2018 – Forbes</p>
<div class="spirit-list-item__links-contain">
<a class="spirit-list-item__link" href="#">Read More</a>
</div>
</div>
</li>
</ul>
Class | Applies to | Outcome |
---|---|---|
|
|
Applies list styling to an overall list. |
|
|
Applies list styling to a list item. |
|
|
Use |
|
|
Switches layout on content links to align them to the right of the list item. |
|
|
Changes list item layout to support an avatar. |
|
|
Changes list item layout to support an image. |
|
|
Switches the layout on the image to align it to the right of the list item. |