---
title: "Link"
description: "Styled link element. Wraps the Polaris <s-link> web component."
canonical_url: "https://shopify.yan.ad/components/actions/link"
---
# Link

> Styled link element. Wraps the Polaris <s-link> web component.

## Live preview

<polaris-preview example="link">



</polaris-preview>

## Props

<table>
<thead>
  <tr>
    <th>
      Prop
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        tone
      </code>
    </td>
    
    <td>
      <code>
        'auto' | 'critical' | 'neutral'
      </code>
    </td>
    
    <td>
      —
    </td>
    
    <td>
      Color tone
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        href
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      —
    </td>
    
    <td>
      Link destination
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        target
      </code>
    </td>
    
    <td>
      <code>
        'auto' | '_blank' | '_self' | '_parent' | '_top' | string
      </code>
    </td>
    
    <td>
      —
    </td>
    
    <td>
      Link target
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        download
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      —
    </td>
    
    <td>
      Download attribute
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        lang
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      —
    </td>
    
    <td>
      Language attribute
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        accessibilityLabel
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      —
    </td>
    
    <td>
      Accessible label
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        command
      </code>
    </td>
    
    <td>
      <code>
        '--auto' | '--show' | '--hide' | '--toggle'
      </code>
    </td>
    
    <td>
      —
    </td>
    
    <td>
      Command for invoketarget pattern
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        commandFor
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      —
    </td>
    
    <td>
      Target element ID for command
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        interestFor
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      —
    </td>
    
    <td>
      Target element ID for interest
    </td>
  </tr>
</tbody>
</table>

## Slots

<table>
<thead>
  <tr>
    <th>
      Slot
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        default
      </code>
    </td>
    
    <td>
      Link content
    </td>
  </tr>
</tbody>
</table>

## Polaris Element

Renders as `<s-link>`. See [Polaris Link docs](https://shopify.dev/docs/api/app-home/web-components/actions/link).


## Sitemap

See the full [sitemap](https://shopify.yan.ad/sitemap.md) for all pages.
