Actions

Link

Text that opens a URL.

iOSSwiftUI HStack of Image and TextAndroidCompose Row of Icon and TextRenders in a Screen or an Island
Link on iOS
iOSSwiftUI HStack of Image and Text
Link on Android
AndroidCompose Row of Icon and Text

Import

ts
import {Link} from '@hzblj/kara-ui'

Props

Opens an external URL in the platform browser or the app that claims the scheme.

PropTypeDefaultDescription
label*string—

The link's text.

url*string—

Opened through React Native's Linking on press. A URL nothing can open fails silently.

colorColorToken'content.accent'

Colours the label and the icon. content.accent by default.

iconIconName—

One of the app's icons, before the label.

testIDstring—

Test identifier, forwarded to the native view.

variantTextVariant'body'

The label's text style. body by default.

label*
string

The link's text.

url*
string

Opened through React Native's Linking on press. A URL nothing can open fails silently.

color'content.accent'
ColorToken

Colours the label and the icon. content.accent by default.

icon
IconName

One of the app's icons, before the label.

testID
string

Test identifier, forwarded to the native view.

variant'body'
TextVariant

The label's text style. body by default.

Platform notes

  • Opens the URL in the platform browser, or in whichever app claims the scheme. For in-app navigation use the router.