Gravity
Search…
List
Create an ordered, unordered or checklist.

Ordered & Unordered

1
<List ordered items={[
2
'Coconut Milk',
3
'Coffee',
4
'Chocolate'
5
]}/>
Copied!

Props

props
description
value
ordered
determines if list is ordered or unordered
true or false
items
items in list
string array
interactive
use when using clickable li elements with onClick
true or false
circles
render circles with checks for completed steps
true or false

Check List

1
<CheckList items={[
2
{ name: 'Coconut Milk', completed: true },
3
{ name: 'Coffee', completed: true },
4
{ name: 'Chocolate', completed: false }
5
]}/>
Copied!

Props

prop
description
value
items
items in the list, with name and completed and onClick keys
array of objects
Last modified 1yr ago