Ordered List
Displays a numbered list of related items in a specific sequence. Use to present step-by-step instructions, ranked items, or procedures where order matters.
Anchor to propertiesProperties
- string
A unique identifier for the element.
OrderedListProps
- id
A unique identifier for the element.
string
export interface OrderedListProps extends OrderedListProps$1 {
}
Was this section helpful?
Anchor to listitemListItem
Represents a single item within an unordered or ordered list. Use only as a child of s-unordered-list
or s-ordered-list
components.
- string
A unique identifier for the element.
ListItemProps
- id
A unique identifier for the element.
string
export interface ListItemProps extends Pick<ListItemProps$1, 'id'> {
}
Was this section helpful?
Code
<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>
examples
Code
<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>
Preview

Anchor to best-practicesBest Practices
- Use
s-ordered-list
when you need to present items in a specific sequence or order. - Each item in the list should be wrapped in as-list-item
component. - Keep list items concise and consistent in length when possible. - Uses-ordered-list
for step-by-step instructions, numbered procedures, or ranked items. - Consider usings-ordered-list
when the order of items is important for understanding.
Was this section helpful?