Actions
Link
Text that opens a URL.
iOSSwiftUI HStack of Image and TextAndroidCompose Row of Icon and TextRenders in a Screen or an Island


Import
ts
import {Link} from '@hzblj/kara-ui'Props
Opens an external URL in the platform browser or the app that claims the scheme.
| Prop | Type | Default | Description |
|---|---|---|---|
| label* | string | — | The link's text. |
| url* | string | — | Opened through React Native's |
| color | ColorToken | 'content.accent' | Colours the label and the icon. |
| icon | IconName | — | One of the app's icons, before the label. |
| testID | string | — | Test identifier, forwarded to the native view. |
| variant | TextVariant | 'body' | The label's text style. |
label*
stringThe link's text.
url*
stringOpened through React Native's Linking on press. A URL nothing can open fails silently.
testID
stringTest identifier, forwarded to the native view.
Platform notes
- Opens the URL in the platform browser, or in whichever app claims the scheme. For in-app navigation use the router.

