Lists
Learn about the List component and how to use it.
The List
is a wrapper around styled ul
and ol
html tags. This is how it looks like:
Apples
Carrots
Pineapples
Add list
Import the component from the list folder:
import { List } from '../components/list';
The component accepts a type
property which must have a value of either ordered
or unordered
:
<List type="ordered">
<li><p>Buy the groceries</p></li>
<li><p>Cook the food</p></li>
<li><p>Eat the food</p></li>
<li><p>Wash the dishes</p></li>
<List type="ordered">
This is how the ordered list looks like:
Buy the groceries
Cook the food
Eat the food
Wash the dishes
Customize list style
Adjust the appearance in global.css