One tappable row in a list, with an icon, a label and a description. The whole row is the control, so it cannot hold its own buttons.
Health
Source
Playground
No Example
Accessibility
unknown
Platform
Universal
Contrib Component
ListItemNext is a community contributed component. We encourage its usage but it might not give the same level of robustness (accessibility, tests, ...) than core Murray components.- Overview
- Props
ListItemNext
The ListItemNext component is available for universal (web and mobile) applications.
Overview
See the component source code for API details and examples.
tip
This component is universal, its usage is the same on web and mobile.
ListItemNext props
| Name | Type | Default Value | Description | Usage count |
|---|---|---|---|---|
| addOn | AddonPropsundefined | addOn to be displayed on the left side, accept icon, breakdown_color, blobby or a custom node | ||
| description | ReactNode | |||
| disabled | booleanundefined | |||
| hideCaret | booleanundefined | When `onPress` or `href` is filled, caret is shown by default. You can disable it with this prop. | ||
| href | stringundefined | Web only. In-app route rendered as a react-router link, for items that navigate to another page. Gets `aria-current="page"` when it matches the current location exactly. | ||
| label | stringundefined | |||
| onPress | (() => void)undefined | |||
| stackNumber | numberundefined | display a stack number on the left near the addOn | ||
| sx | PositionPropsundefined | |||
| variant | "default""action"undefined | default |
Style API
Use sx for one-off adjustments. It accepts these style keys:
alignSelfanimationaspectRatiobottomcursordisplayendflexflexBasisflexGrowflexShrinkheightinsetinsetInlineinsetInlineEndinsetInlineStartleftmarginmarginBottommarginHorizontalmarginInlinemarginInlineEndmarginInlineStartmarginLeftmarginRightmarginTopmarginVerticalmatrixmaxHeightmaxWidthminHeightminWidthopacityperspectivepositionrightrotaterotateXrotateYrotateZscalescaleXscaleYskewXskewYstarttoptransformtransformOriginwidthxyzIndex
Each can be overridden per breakpoint with:
$lg$ltLg$ltMd$ltSm$ltVs$ltXl$ltXxl$md$sm$vs$xl$xs$xxl