List

List can be used to create a list of data.

Source
Theme Source
pnpm dlx dreamy add list

List displays a collection of items in an organized format. Use it to present related content in an ordered or unordered structure.

  • i5-10400f
  • RTX 4060ti
  • 32GB RAM
<List.Root>
	<List.Item>i5-10400f</List.Item>
	<List.Item>RTX 4060ti</List.Item>
	<List.Item>32GB RAM</List.Item>
</List.Root>

Simply pass the ordered prop to the List component to create an ordered list. It will render ol tag, instead of ul.

  1. i5-10400f
  2. RTX 4060ti
  3. 32GB RAM
<List.Root ordered>
	<List.Item>i5-10400f</List.Item>
	<List.Item>RTX 4060ti</List.Item>
	<List.Item>32GB RAM</List.Item>
</List.Root>