Skip to main content

Ordered list

The ordered list component displays a numbered list of related items in a specific sequence. Use ordered list to present step-by-step instructions, ranked items, procedures, or any content where order and sequence matter to understanding.

Ordered lists automatically number items and support nested lists for hierarchical content organization. For items where order doesn't matter, use unordered list.

List items must be direct children of s-ordered-list — wrapping them in other elements breaks automatic numbering.

Support
Targets (24)

Configure the following properties on the ordered list component.

string

A unique identifier for the element. Use this to reference the element in JavaScript, link labels to form controls, or target specific elements for styling or scripting.


Represents a single item within a list. Use only as a child of s-ordered-list or s-unordered-list components.

string

A unique identifier for the element. Use this to reference the element in JavaScript, link labels to form controls, or target specific elements for styling or scripting.


Anchor to Add a basic numbered listAdd a basic numbered list

Shows a simple numbered list of account steps. Every entry must be a direct s-list-item child of s-ordered-list so numbering renders correctly.

Add a basic numbered list

A numbered list with sequential items displayed in order.

html

<s-ordered-list>
<s-list-item>Add items to your cart</s-list-item>
<s-list-item>Review your order details</s-list-item>
<s-list-item>Complete your purchase</s-list-item>
</s-ordered-list>

  • Keep items concise: Write short, parallel list items so customers can scan the sequence quickly.
  • Avoid deep nesting: Limit nested lists to one level to keep the numbered hierarchy easy to follow.

Was this page helpful?