List

List is used to display list items, it renders a <ul> by default.

Import#

Unordered List#

  • Lorem ipsum dolor sit amet
  • Consectetur adipiscing elit
  • Integer molestie lorem at massa
  • Facilisis in pretium nisl aliquet
Editable Example

Ordered List#

  1. Lorem ipsum dolor sit amet
  2. Consectetur adipiscing elit
  3. Integer molestie lorem at massa
  4. Facilisis in pretium nisl aliquet
Editable Example

Unstyled List with icon#

Add nice icons to the list item by using the ListIcon component. You can pass the name of the icon or custom icons. The icon is sized relative to the font size of the list item.

  • Lorem ipsum dolor sit amet, consectetur adipisicing elit
  • Assumenda, quia temporibus eveniet a libero incidunt suscipit
  • Quidem, ipsam illum quis sed voluptatum quae eum fugit earum
  • Quidem, ipsam illum quis sed voluptatum quae eum fugit earum
Editable Example

Props#

List Props#

NameTypeDefaultDescription
styleTypestringnoneThe CSS value for list-style-type
stylePosstringinsideThe CSS value for list-style-position
spacingStyledSystem.MarginBottomPropsThe space between each list item

List Item Props#

ListItem composes PseudoBox so you pass all style props, and pseudo style props.

Proudly made in 🇳🇬

Released under the MIT License.

Copyright © 2020 Segun Adebayo