Components / Layout

List nativelite

A windowed scrolling list; required for anything longer than a screen, children may come from a data template.

A2UI basic
List
Children
many
Loading the renderer…
List rendered by the React renderer on Web
Web React
List rendered by the SwiftUI renderer on iOS
iOS SwiftUI
List rendered by the Compose renderer on Android
Android Compose
List rendered by the gpui renderer on Desktop
Desktop gpui

View exponential-ui-list, painted by each native renderer.

direction · vertical
direction · horizontal
PropTypeDefaultDescription
directionvertical | horizontal"vertical"Scroll axis.
gapnone | xs | sm | md | lg | xl"none"The space between items.
dividedbooleanfalseDraws a hairline between items.
sectionBystring–Groups consecutive template items by this field; slot section = each header (scope {value, count}).
stickyHeadersbooleanfalsePins the current section header.
stylestyle–Extra Box styles for the list frame.
NameKind
sectionslot: one component by id
Role
list
Semantics
list; each item a listitem with its position in the WHOLE list (aria-setsize/posinset, also when windowed); a section header is a heading (level 3) and stays first in reading order while pinned
KeysAction
–Tab moves through the rows' controls; the list itself is one scroll region
Recipe parts
List/rootList/dividerList/section
Keyed by
directiondividedstickyHeaders:hover:pressed:focus:disabled:checked:open:selected:invalid:dragover

Themes · Write a theme