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/htmlUsage
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:
| Prop | Type | Default | Required |
|---|---|---|---|
| href | string | - | - |
| target | string | - | - |
| rel | string | - | - |
Last updated on