Typedefs
[props]
props for List
[defaultProps]
default props for List
The List component maps a collection of data objects into an array of elements. It also manages the selection and focus of those elements.
Returns{react.element}: A React component that displays list data.
Parameters
Name
Type
Description
props
propsReact Component props
props for List
Properties
Name
Type
Description
classes
Objectcss classes prop for List
classes.root
stringcss classes for List root container
getItemKey
funcitem key value getter
initialSelection
array | objectA single or list of objects that should start off selected
items
iterableAn iterable that yields
[key, item] pairs such as an ES2015 Maprender
func | stringA render prop for the list element. A tagname string, such as
"div", is also valid.renderItem
func | stringA render prop for the list item elements. A tagname string, such as
"div", is also validonSelectionChange
funcA callback that fires when the selection state changes
selectionModel
checkbox | radioA string corresponding to a selection model
default props for List
Source Code: pwa-studio/packages/peregrine/lib/List/list.js