---
title: "Number"
description: "Display inline numeric content with tabular numerals using the Polaris s-number component."
canonical_url: "https://shopify.yan.ad/components/content/number"
---
# Number

> Display inline numeric content with tabular numerals using the Polaris s-number component.

## Live preview

<polaris-preview example="number">



</polaris-preview>

## Props

<table>
<thead>
  <tr>
    <th>
      Prop
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Polaris default
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        accessibilityVisibility
      </code>
    </td>
    
    <td>
      <code>
        'visible' | 'hidden' | 'exclusive'
      </code>
    </td>
    
    <td>
      <code>
        'visible'
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        color
      </code>
    </td>
    
    <td>
      <code>
        'base' | 'subdued'
      </code>
    </td>
    
    <td>
      <code>
        'base'
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        dir
      </code>
    </td>
    
    <td>
      <code>
        '' | 'auto' | 'ltr' | 'rtl'
      </code>
    </td>
    
    <td>
      <code>
        ''
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        fontSize
      </code>
    </td>
    
    <td>
      <code>
        'small-200' | 'small-100' | 'small' | 'base' | 'large' | 'large-100' | 'auto'
      </code>
    </td>
    
    <td>
      <code>
        'auto'
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        fontWeight
      </code>
    </td>
    
    <td>
      <code>
        'base' | 'auto' | 'medium' | 'semibold' | 'bold'
      </code>
    </td>
    
    <td>
      <code>
        'auto'
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        tone
      </code>
    </td>
    
    <td>
      <code>
        'auto' | 'neutral' | 'info' | 'success' | 'caution' | 'warning' | 'critical'
      </code>
    </td>
    
    <td>
      <code>
        'auto'
      </code>
    </td>
  </tr>
</tbody>
</table>

## Slots

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

<tbody>
  <tr>
    <td>
      <code>
        default
      </code>
    </td>
    
    <td>
      Numeric text to display with tabular numerals.
    </td>
  </tr>
</tbody>
</table>

Number does not format, round, or localize its content. Format values in your application before rendering. Unlike `ShNumberField`, it is not an editable form control.

## Polaris Element

Renders as `<s-number>`. See [Shopify Number reference](https://shopify.dev/docs/api/app-home/latest/web-components/typography-and-content/number).


## Sitemap

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