Glowup
DATA DISPLAY · 50 / 89
ListItem
ListItem — a Material You data display component for React Native and web.
󱀫
packages/ui/src/components/List/ListItem.tsx
Live demo
Properties
1 control
Label
Usage
ListItem.tsx
<ListItem> List item label </ListItem>
Variants
The states and shapes this component is meant to be used in.
Settings list
󰇰
Email notifications
Weekly digest
Slots
󰉕
leading only
trailing only
󰅂
secondary only
the second line sits under the primary one
󱕍
leading + secondary + trailing
all three slots filled
󰅂
With avatars
Custom surface
Text only
No slots at all: the original single-line centred tile is still what you get.
API reference
Generated from the library's TypeScript, so it cannot drift from the implementation.
Props
7 on ListItemProps
children
required
React.ReactNode
itemContainerStyle
object
itemTextStyle
object
leading
React.ReactNode
Leading slot — an Avatar, an icon, a Checkbox.
onPress
() => void
secondary
React.ReactNode
Second line below `children`.
trailing
React.ReactNode
Trailing slot — a value, a Toggle, a chevron.