---
title: "Text"
description: "Styled text with tone and color control. Wraps the Polaris <s-text> web component."
canonical_url: "https://shopify.yan.ad/components/content/text"
---
# Text

> Styled text with tone and color control. Wraps the Polaris <s-text> web component.

## Live preview

<polaris-preview example="text">



</polaris-preview>

## Props

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

<tbody>
  <tr>
    <td>
      <code>
        type
      </code>
    </td>
    
    <td>
      <code>
        'strong' | 'generic' | 'address' | 'redundant'
      </code>
    </td>
    
    <td>
      —
    </td>
    
    <td>
      Text type / semantic role
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        tone
      </code>
    </td>
    
    <td>
      <code>
        'info' | 'success' | 'warning' | 'critical' | 'auto' | 'neutral' | 'caution'
      </code>
    </td>
    
    <td>
      —
    </td>
    
    <td>
      Color tone
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        color
      </code>
    </td>
    
    <td>
      <code>
        'base' | 'subdued'
      </code>
    </td>
    
    <td>
      —
    </td>
    
    <td>
      Text color
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        fontVariantNumeric
      </code>
    </td>
    
    <td>
      <code>
        'auto' | 'normal' | 'tabular-nums'
      </code>
    </td>
    
    <td>
      —
    </td>
    
    <td>
      Numeric font variant
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        dir
      </code>
    </td>
    
    <td>
      <code>
        '' | 'auto' | 'ltr' | 'rtl'
      </code>
    </td>
    
    <td>
      —
    </td>
    
    <td>
      Text direction
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        accessibilityVisibility
      </code>
    </td>
    
    <td>
      <code>
        'visible' | 'hidden' | 'exclusive'
      </code>
    </td>
    
    <td>
      —
    </td>
    
    <td>
      Accessibility visibility
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        interestFor
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      —
    </td>
    
    <td>
      Target element 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>
      Text content
    </td>
  </tr>
</tbody>
</table>

## Polaris Element

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


## Sitemap

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