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

Link.tsx
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

PropTypeDefault
href required string—
label

Accessible label override for icon-only or otherwise non-textual links.

string—
style IntrinsicStyle—
Inherited from ViewProps 10 props
PropTypeDefault
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
PropTypeDefault
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