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 26 | Android | |
|---|---|---|
| Native component | Text with a link | Text with a link |
| Look | The text's color, underlined; a gray behind it while pressed | The text's color, underlined; the press layer behind it while pressed |
API
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | — | Link content |
href | string | — | 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 |
primary | boolean | false | Primary color, no default underline |
underline | boolean | true | Underline (default true unless primary) |
forceExternal | boolean | — | 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 |
standalone | boolean | false | A 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 |
accessibilityLabel | string | — | Accessible name, when the text alone does not say where the link goes |
style | StyleProp<TextStyle> | — | Style of the link's text |
testID | string | — | 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.