wwwwwwwwwwwwwwwwwww
Introduction
Installation
Releases

Core

Configuration
Tokens
Stack & Text
styled
Variants
Props
Themes
Animations
Theme
useMedia
useTheme
FontLanguage
Extras

Compiler

About
Install
Benchmarks

Theme

Colors
Tokens

Tamagui

Stacks
Headings
Text

Forms

Button
Checkbox
Form
Input & TextArea
Label
Progress
RadioGroup
Select
Slider
Switch
ToggleGroup

Panels

AlertDialog
Dialog
Popover
Sheet
Tooltip
Toast

Organize

Accordion
Group
Tabs

Content

Avatar
Card
Image
ListItem

Visual

LinearGradient
Separator
Square & Circle

Etc

Anchor
HTML Elements
ScrollView
Spinner
Unspaced
VisuallyHidden

Extras

Lucide Icons

Guides

Design Systems
Creating Custom Themes
How to Build a Button
Developing
Next.js
Expo
Vite
create-tamagui

Community

Community
Blog
GitHub
Twitter
Discord

Anchor

Link to external websites on web and native.

Features

  • Supports SSR.

  • Works on native and web.

  • Accepts Tamagui style props.

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 will use React Native Linking.openURL, on web it will render to an a element with href set appropriately.

API Reference

Anchor

Inherits Tamagui props as well as:

Props

  • href

    string

    Location to link to.

  • target

    string

  • rel

    string

  • Previous

    Square & Circle

    Next

    HTML Elements