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 (29)

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.


The list item component represents a single entry within an ordered list or unordered list. Use list item to structure individual points, steps, or items within a list, with each item automatically receiving appropriate list markers (bullets or numbers) from its parent list.

List item must be used as a direct child of ordered list or unordered list components. Each list item can contain text, inline formatting, or other components to create rich list content.

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 checkout 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 rendered example of the ordered-list component

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 buyers 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?