Primals
List

ListItem

The ListItem component is used to render a list item.

This takes all the props from the default props table and all the native <li> element.

UnorderedList

The UnorderedList component is used to render an unordered list.

import {ListItem, UnorderedList as List } from "./index.mist";
 
<List>
  <ListItem>Item 1</ListItem>
  <ListItem>Item 2</ListItem>
  <ListItem>Item 3</ListItem>
</List>

Props

This takes all the props from the default props table and all the native <ul> element. Plus the following:

NameTypeDefaultDescription
listStylestringcircle inside noneThe style of the list.
listStyleTypestringcircleThe type of the list.
listStylePositionstringinsideThe position of the list style.
listStyleImagestringnoneThe image of the list style.

OrderedList

The OrderedList component is used to render an ordered list.

import {ListItem, OrderedList as List } from "./index.mist";
 
<List>
  <ListItem>Item 1</ListItem>
  <ListItem>Item 2</ListItem>
  <ListItem>Item 3</ListItem>
</List>

Props

This takes all the props from the default props table and all the native <ol> element. Plus the following:

NameTypeDefaultDescription
listStylestringdecimal inside noneThe style of the list.
listStyleTypestringdecimalThe type of the list.
listStylePositionstringinsideThe position of the list style.
listStyleImagestringnoneThe image of the list style.

Examples

Unordered List

Default

  • Item 1
  • Item 2
  • Item 3

Square

  • Item 1
  • Item 2
  • Item 3

Disc

  • Item 1
  • Item 2
  • Item 3

None

  • Item 1
  • Item 2
  • Item 3

Ordered List

Default

  1. Item 1
  2. Item 2
  3. Item 3

Lower Alpha

  1. Item 1
  2. Item 2
  3. Item 3

Upper Alpha

  1. Item 1
  2. Item 2
  3. Item 3

Lower Roman

  1. Item 1
  2. Item 2
  3. Item 3

Upper Roman

  1. Item 1
  2. Item 2
  3. Item 3

None

  1. Item 1
  2. Item 2
  3. Item 3