What it does
Exposes ul and ol variants with shared tone styling.
List.Item renders relaxed line-height items ready for nested lists.
Composition and API
Use ordered for sequences and unordered for collections.
Apply marker styles only when ordered is false.
Common use cases
- Installation steps with decimals.
- Feature bullets with discs.
- Nested procedures inside cards.
- Settings pages enumerating options.
Accessibility
Announce lists with proper ul/ol semantics.
Ensure nested lists maintain coherent reading order.
Next.js integration notes
Static lists render from server components.
Hydrate only when adding interactive reordering.
FAQ
How do I nest lists?
Place another List inside a List.Item child; keep nesting shallow for readability.
Can markers be removed?
Use marker="none" on unordered lists when building custom layouts while keeping semantic ul structure.
Are ordered lists always decimal?
Ordered lists apply decimal styling by default; extend via className if you need alternate schemes.