Hanzo GUI

Anchor

Link to external websites

  • Supports SSR.
  • Works on native and web.
  • Accepts Hanzo GUI style props.

Installation

Anchor is already installed in @hanzo/gui, or you can install it independently:

npm install @hanzogui/html

Usage

The Anchor component provides a way to link to external websites. It extends SizableText, adding the href, target, and rel attributes.

On native, it uses React Native Linking.openURL. On web, it renders an a element with href set appropriately.

API Reference

Anchor

Inherits Gui props as well as:

PropTypeDefaultRequired
hrefstring--
targetstring--
relstring--

Last updated on

On this page