Use List...
- To display related items in a vertical arrangement.
- To place a series of links inside Left Hand Navigation.
- To describe steps, instructions, or rules.
Don't use List...
- To present unrelated items.
Checkmarks
Use skin="checkmark"
to replace the bullets with checkmark icons.
Minimal
Use skin="minimal"
to remove the bullets from the list. This is useful for accessibility, as it allows you to use proper list semantics without visible list styling.
Ordered List
Use <Ol>
to replace the bullets with stylized numbers.
Link List
Use <LinkList>
to provide standard styling for a series of links, such as inside Left Hand Navigation.
Icon Bullet List
Use <BulletListIcon>
to set a custom icon for each item instead of a "bullet".
Alternates
We provide alternative names to some of our List components. This is just for user convenience and we do not prefer one over another.
<List> | <Ul> |
<OrderedList> | <Ol> |
<ListItem> | <Li> |
Accessibility
If a List has a heading, the List itself should have an aria-labelledby
attribute whose value is the id of the heading.