The List component is a versatile tool for displaying collections of items in a structured format, facilitating easy navigation and comprehension.
It displays a set of connected items consecutively, either one below the other or inline. It offers flexible rendering options, including ordered lists, unordered lists, and other styles, while also allowing for visual customizations, such as adding colons to list items or rendering them with smaller font sizes.
ordered
) when you need to convey a
priority, hierarchy, or sequence between list items.colon
prop
when you want to emphasize list items, especially for short, critical lists.List
component when presenting a set of items that need to be displayed in a sequential or hierarchical order.List
component for menus, navigation bars, or any scenario where content needs to be structured into a list format.unordered
kind for lists where the sequence of items is crucial.List
component for non-linear content layouts or when the content does not benefit from a structured list format.Cards
or Tables
for presenting non-linear or visually rich content.<ul>
, <ol>
, and <li>
.