Version: 3.1.0

List

List is used to display list items.

Examples#

Basic#

Ordered List#

Unordered List#

Styled List#

Pressable List#

List with ListIcon#

Virtualized List#

Props#

List#

Name Type Description Default
children Element | Element[] List's Children. -
unordered boolean Is ListItem Unordered?. -
ul boolean Is ListItem Unordered?. -
ordered boolean Is ListItem Ordered?. -
ol boolean Is ListItem Ordered?. -
_hover IStackProps common _hover that is passed to all the children. -
_focus IStackProps common _focus that is passed to all the children. -
_pressed IStackProps common _pressed that is passed to all the children. -
start number Ordered List index starting value. 0
_text ITextProps Props to style the commonly all the List.Item's text. -

List implements Stack, Box

List.Item#

Name Type Description Default
unordered boolean Is ListItem Unordered?. -
ul boolean Is ListItem Unordered?. -
ordered boolean Is ListItem Ordered?. -
ol boolean Is ListItem Ordered?. -
start number Ordered List index starting value. 0
_text ITextProps Props to style the child text. -

ListItem implements Pressable