Utilities
Name Value List
- HTML/CSS:Dev Ready
- Layout:Desktop Only
An unordered list that describes a name/value pairing.
Examples#
Horizontal#
- First Label:
- Description for first label
- Second Label:
- Description for second label
<dl class="slds-list_horizontal slds-wrap">
<dt class="slds-item_label slds-text-color_weak slds-truncate" title="First Label">First Label:</dt>
<dd class="slds-item_detail slds-truncate" title="Description for first label">Description for first label</dd>
<dt class="slds-item_label slds-text-color_weak slds-truncate" title="Second Label">Second Label:</dt>
Inline#
- First Label:
- Description for first label
- Second Label:
- Description for second label
<dl class="slds-list_inline">
<dt class="slds-item_label slds-text-color_weak slds-truncate" title="First Label">First Label:</dt>
<dd class="slds-item_detail slds-truncate" title="Description for first label">Description for first label</dd>
<dt class="slds-item_label slds-text-color_weak slds-truncate" title="Second Label">Second Label:</dt>
Stacked#
- First Label:
- Description for first label
- Second Label:
- Second description
<dl class="slds-list_stacked">
<dt class="slds-item_label slds-text-color_weak slds-truncate" title="First Label">First Label:</dt>
<dd class="slds-item_detail slds-truncate" title="Description for first label">Description for first label</dd>
<dt class="slds-item_label slds-text-color_weak slds-truncate" title="Second Label">Second Label:</dt>
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-item_label |
---|---|
Summary | Label of the name-value pair variant. Layout is modified by its parent class. |
Restrict | * |
Modifier | True |
Selector | .slds-item_detail |
---|---|
Summary | Label of the name-value pair variant. Layout is modified by its parent class. |
Restrict | * |
Modifier | True |