- Implementation
- List Props
- List.Item Props
Common Examples
Unordered list (default)
Omitvariant or set variant="unordered" to render a ul with bullet markers.Ordered list
Setvariant="ordered" to render an ol with numeric markers. You can pass native ol attributes such as start and reversed.Size
Usesize to control typography (small, medium, large).Nested lists
Render aList inside a List.Item to create sub-lists. Use a different variant (e.g., ordered inside unordered) when it fits the content.Ordered with start and reversed
Whenvariant="ordered", you can pass start (number) and reversed (boolean) as with native ol.React Accessibility
TheList component renders semantic ul/ol and li elements, so list structure is exposed to assistive technologies without extra ARIA. Screen readers can announce the list and the number of items. Keep list item content readable and avoid using List for interactive selection; use Listbox or Menu for that.