Garden 9 is now available.
The website has been updated to the latest major version. View previous versions
Skip to main content
Design
Components
Patterns
    • Introduction
      • Overview
    • Foundations
      • Bedrock CSS
      • Design tokens
      • Containers
      • Theming
      • Versions
    • Components
      • Accordion
      • Anchor
      • Avatar
      • Breadcrumbs
      • Buttons
      • Chrome
      • Code block
      • Color picker
      • Color swatch
      • Date picker
      • Draggable
      • Drawer
      • Forms
      • Grid
      • Loaders
      • Menu
      • Modal
      • Notification
      • Pagination
      • Pane
      • Sheet
      • Status indicator
      • Stepper
      • Table
      • Tabs
      • Tags
      • Tiles
      • Timeline
      • Tooltip
      • Tooltip dialog
      • Typography
      • Well
    Table of Contents
    • How to use it
      • Default
      • Danger
      • External anchor
      • Hidden underline
    • Configuration
    • API
      • Anchor

    Anchor

    The Anchor is a link that helps users navigate from one location to another.


    Table of Contents
    • How to use it
      • Default
      • Danger
      • External anchor
      • Hidden underline
    • Configuration
    • API
      • Anchor

    Used for this
    • To navigate from one page to another
    • To navigate within a page
    • To display links alongside text
    Not for this
    • To prompt an action or submit data, use a Button instead

    How to use it

    Default

    The Anchor component is a styled <a> tag. It accepts all standard anchor attributes and signals a way to navigate.

    Toggle dark mode
    Set primary hue
    Toggle RTL
    Open in CodeSandbox
    Copy code
    View code

    Danger

    Danger styling communicates that navigating away from your current location will have destructive results.

    Toggle dark mode
    Set primary hue
    Toggle RTL
    Open in CodeSandbox
    Copy code
    View code

    External anchor

    An icon appended to the end of an Anchor signals that the link will open in a new window or tab.

    Toggle dark mode
    Set primary hue
    Toggle RTL
    Open in CodeSandbox
    Copy code
    View code

    Hidden underline

    Hide an anchor’s underline to reduce visual fatigue when multiple are displayed.

    Toggle dark mode
    Set primary hue
    Toggle RTL
    Open in CodeSandbox
    Copy code
    View code

    Configuration

    • Name9.5.3•View source•View on npm
    • Installnpm install @zendeskgarden/react-buttons
    • Depsnpm install react react-dom styled-components @zendeskgarden/react-theming
    • Importimport { Anchor } from '@zendeskgarden/react-buttons'

    API

    Anchor

    Extends AnchorHTMLAttributes<HTMLAnchorElement>

    The Anchor component applies appropriate attributes, icon, and styles based on the props provided.

    Prop nameTypeDefaultDescription
    externalIconLabel
    string

    Allows a customized/translated text label to be passed to the external link icon, making that icon accessible to assistive technology

    isDanger
    boolean

    Applies danger styling

    isExternal
    boolean

    Attaches target="_blank" and rel="noopener noreferrer" to an anchor that navigates to an external resource. This ensures that the anchor is a safe cross-origin destination link.

    isUnderlined
    boolean
    true

    Determines if the anchor has underline styling

    Garden is the design system by Zendesk.
    BlogGitHubVersions
    © Zendesk 2025