ExpoStartup

ListLink

A component for navigation items in lists with customizable icons and layout.

ListLink

A component for creating consistent navigation links in lists with support for icons, descriptions, and various layout options.

Import

import ListLink from '@/components/ListLink';

Features

  • Navigation support via expo-router
  • Leading and trailing icons
  • Optional description text
  • Right-aligned content support
  • Clear visual feedback on press

Props

PropTypeDefaultDescription
titlestringPrimary text to display
descriptionstringSecondary text shown below title
hrefstringNavigation destination
iconIconNameLeading icon name
rightTextstringText to display on the right
rightContentReactNodeCustom component on the right side
showChevronbooleantrueWhether to show > chevron on right
onPress() => voidCustom press handler
classNamestringAdditional styling classes
contentClassNamestringClasses for the content container

Basic Usage

// Basic navigation item
<ListLink 
  title="Profile"
  href="/profile"
  icon="User"
/>
 
// With description text
<ListLink
  title="Notifications"
  description="Configure your alert preferences"
  href="/settings/notifications"
  icon="Bell"
/>
 
// With right-aligned text
<ListLink
  title="App Version"
  rightText="1.2.0"
  showChevron={false}
/> 

On this page