Text Link

A link in running text, to a page of the app or another site, that takes the color of the text around it.

import { TextLink } from "@plexui/react-native"

Examples

Overview

Platforms

iOS 26Android
Native componentText with a linkText with a link
LookThe text's color, underlined; a gray behind it while pressedThe text's color, underlined; the press layer behind it while pressed

API

PropTypeDefaultDescription
childrenReactNode—Link content
hrefstring—URL, opened with Linking (an anchor on the web). An http:// or https:// URL is external
onPress(event: GestureResponderEvent) => void—Called when the link is pressed, before it opens href; event.preventDefault() keeps it from opening
primarybooleanfalsePrimary color, no default underline
underlinebooleantrueUnderline (default true unless primary)
forceExternalboolean—Force external link behavior (a new tab on the web)
weight"regular" | "medium" | "semibold" | "bold"—Weight of the link's text; the text's own by default
standalonebooleanfalseA small action of its own outside running text (Restore Purchases under a store's plans): on iOS the text alone at 15/20 in the link color with a 44pt target and the pressed fade; on Android Material's small text button
accessibilityLabelstring—Accessible name, when the text alone does not say where the link goes
styleStyleProp<TextStyle>—Style of the link's text
testIDstring—Test id

With href the link is a link for screen readers; with only onPress it is a button. The web's to, as and target are for a web router and a browser's tabs: in React Native a router's own link handles onPress (weight and style stand for the font-weight class and className), and PlexUIProvider's linkComponent has no counterpart.