Utilities
Vertical List
- HTML/CSS:Dev Ready
- Layout:Desktop Only
Sections
- Base
- Examples
- Dotted
- Decimal
- Links
- Block Links
- Block Links with Space
- Inline Block Links
- Inline Block Links with Space
- Nested Vertical Lists
- Top
- Top with Space
- Top with Link
- Top with Link and Space
- Bottom
- Bottom with Space
- Bottom with Link
- Bottom with Link and Space
- Around
- Around with Space
- Around with Link
- Around with Link and Space
- Overview of CSS Classes
A vertical list.
Base#
- Vertical List
- List Item
- List Item
<ul>
<li>Vertical List</li>
<li>List Item</li>
<li>List Item</li>
Examples#
Dotted#
- Basic ordered list
- List Item
- List Item
<ul class="slds-list_dotted">
<li>Basic ordered list</li>
<li>List Item</li>
<li>List Item</li>
Decimal#
- Basic ordered list
- List Item
- List Item
<ol class="slds-list_ordered">
<li>Basic ordered list</li>
<li>List Item</li>
<li>List Item</li>
Links#
<ul>
<li>
<a href="#">Vertical List with links</a>
</li>
Block Links#
<ul class="slds-has-block-links">
<li>
<a href="#">Vertical List with block links</a>
</li>
Block Links with Space#
<ul class="slds-has-block-links_space">
<li>
<a href="#">Vertical List with block links with space</a>
</li>
Inline Block Links#
<ul class="slds-has-inline-block-links">
<li>
<a href="#">Vertical List with inline-block links</a>
</li>
Inline Block Links with Space#
<ul class="slds-has-inline-block-links_space">
<li>
<a href="#">Vertical List with inline-block links with space</a>
</li>
Nested Vertical Lists#
- Vertical List with nested vertical lists
- List Item
- Nested Vertical List
- List Item
- Nested Vertical List
- List Item
- List Item
<ul>
<li>Vertical List with nested vertical lists</li>
<li>List Item</li>
<li>
Top#
- List item with top divider
- List Item
- List Item
<ul class="slds-has-dividers_top">
<li class="slds-item">List item with top divider</li>
<li class="slds-item">List Item</li>
<li class="slds-item">List Item</li>
Top with Space#
- List item with top divider with space
- List Item
- List Item
<ul class="slds-has-dividers_top-space">
<li class="slds-item">List item with top divider with space</li>
<li class="slds-item">List Item</li>
<li class="slds-item">List Item</li>
Top with Link#
<ul class="slds-has-dividers_top slds-has-block-links">
<li class="slds-item">
<a href="#">List item with link and top divider</a>
</li>
Top with Link and Space#
<ul class="slds-has-dividers_top slds-has-block-links_space">
<li class="slds-item">
<a href="#">List item with link and top divider</a>
</li>
Bottom#
- List item with bottom divider
- List Item
- List Item
<ul class="slds-has-dividers_bottom">
<li class="slds-item">List item with bottom divider</li>
<li class="slds-item">List Item</li>
<li class="slds-item">List Item</li>
Bottom with Space#
- List item with bottom divider with space
- List Item
- List Item
<ul class="slds-has-dividers_bottom-space">
<li class="slds-item">List item with bottom divider with space</li>
<li class="slds-item">List Item</li>
<li class="slds-item">List Item</li>
Bottom with Link#
<ul class="slds-has-dividers_bottom slds-has-block-links">
<li class="slds-item">
<a href="#">List item with link and bottom divider</a>
</li>
Bottom with Link and Space#
<ul class="slds-has-dividers_bottom slds-has-block-links_space">
<li class="slds-item">
<a href="#">List item with link and bottom divider with space</a>
</li>
Around#
- List item with around divider
- List Item
- List Item
<ul class="slds-has-dividers_around">
<li class="slds-item">List item with around divider</li>
<li class="slds-item">List Item</li>
<li class="slds-item">List Item</li>
Around with Space#
- List item with around divider with space
- List Item
- List Item
<ul class="slds-has-dividers_around-space">
<li class="slds-item">List item with around divider with space</li>
<li class="slds-item">List Item</li>
<li class="slds-item">List Item</li>
Around with Link#
<ul class="slds-has-dividers_around slds-has-block-links">
<li class="slds-item">
<a href="#">List item with link and around divider</a>
</li>
Around with Link and Space#
<ul class="slds-has-dividers_around slds-has-block-links_space">
<li class="slds-item">
<a href="#">List item with link and around divider with space</a>
</li>
Overview of CSS Classes#
- Selector
- The CSS class being referred to.
- Summary
- A description of what the class does.
- Support
- Whether the class name is dev-ready (meaning it's fully vetted and tested and safe to use) or prototype (which means it's not fully vetted yet).
- Restrict
- The selector that the class name is allowed to be used on.
- Variant
- The base level pattern for a component. A variant can be extended to create another variant of that component, for example, a stateful button is a derivative of the base button.
- Modifier
- A single class that can be added to an HTML element of a component to modify its output. Typically these will be colors, sizing and positioning.
Selector | .slds-list_vertical-space |
---|---|
Summary | Marks a vertical list with .5rem spacing around |
Restrict | * |
Modifier | True |
Selector | .slds-list_vertical-space-medium |
---|---|
Summary | Marks a vertical list with 1rem spacing around |
Restrict | * |
Modifier | True |