Skip to main content

OrderedList

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 children
children
HTMLElement

The items of the OrderedList.

Only ListItems are accepted.

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

Anchor to children
children
HTMLElement

The content of the ListItem.

Examples
<s-ordered-list>
<s-list-item>Red shirt</s-list-item>
<s-list-item>Green shirt</s-list-item>
<s-list-item>Blue shirt</s-list-item>
</s-ordered-list>

Preview

  • Use to break up related content and improve scannability
  • Phrase items consistently (start each with a noun or verb)
  • Start each item with a capital letter
  • Don't use commas or semicolons at the end of lines
Was this page helpful?