Introduction
⚙️ – Core
⚛️ – Atoms-Molecules
AvatarBadgeButtonCheckBoxFieldCircleDividerDownloadCardIconInputFieldInputFieldButtonLinkListItemSizesActive and inactive dotSingle press areaMultiple press areasOneTimeCodeInputPhotoAvatarRadioGroupFieldRatingSelectFieldSimpleAvatarSpacerSwitchFieldTextToast❌ Icon (Deprecated)❌ Roboto (Deprecated)❌ WorkSans (Deprecated)
🧬 – Organisms
ListItem
size
"sm" | "md" | undefined
sm
Size, one of sm, md
renderLeft
ReactNode
Content to be displayed on the left
renderRight
ReactNode
Content to be displayed on the right
children
ReactNode
required
Children
testID
string | undefined
testID
accessibilityLabel
string | undefined
Accessibility label
onPress
(() => void) | undefined
onPress callback
isActive
boolean | undefined
If undefined, renders nothing. If true, renders green dot. If false, renders red dot.
Sizes
Active and inactive dot
Single press area
You can also make it not interactive by simply removing onPress
prop.
Multiple press areas
There are some cases when a list item can perform multiple actions depending which part of it is pressed.
In this case you can use a combination of <ListItemLayout />
and <ListItemRight />
.