Link
A native hyperlink that opens through the platform's URI handler.
Native hyperlink primitive. Opens `href` through the platform's registered URI handler.
Import
import { Link } from "@tarve/core";Usage
import { Link, Text, theme } from "@tarve/core";
<Link href="https://github.com/omarcosr/tarve" label="Tarve on GitHub">
<Text color={theme.colors.primary}>Open the repository</Text>
</Link>Props
| Prop | Type | Default |
|---|---|---|
href required | string | — |
label Accessible label override for icon-only or otherwise non-textual links. | string | — |
style | IntrinsicStyle | — |
Inherited from ViewProps 10 props
| Prop | Type | Default |
|---|---|---|
align | Style["align"] | — |
dismissOnOutside | boolean | — |
dragRegion | boolean | — |
flex | number | — |
gap | number | — |
justify | Style["justify"] | — |
onOutsideClick | () => void | — |
padding | Style["padding"] | — |
portal | boolean | — |
windowAction | "minimize" | "toggleMaximize" | "close" | — |
Inherited from PressableProps 9 props
| Prop | Type | Default |
|---|---|---|
disabled | boolean | — |
focusable | boolean | — |
modal | boolean | — |
onBlur | () => void | — |
onClick | () => void | — |
onContextMenu | (position: { x: number; y: number }) => void | — |
onEscape | () => void | — |
onHover | (hovered: boolean) => void | — |
onKeyDown | (key: string) => void | — |
Common props
Shared by every component. See descriptions →
childrenhighlightidkeymotionFromonHighlightonPasteonTransitionEndrovingGroup