> This page is for Developer.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.bigcommerce.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.bigcommerce.com/_mcp/server.

# Number

Allows you to display number controls for your widget. The setting supports Both “integer” and “float” parse types.

---

**Widget Configuration Output**

```json showLineNumbers={false}
{
  "fontSize": {
    "value": 24,
    "type": "px"
  }
}
```

---

**User Interface Output**

![output](/_fern-img/8554de47c5de421bf1115f99eba7d1e25437944f0375b991badb8e53903b0169.webp)

---

**JSON Schema**

| Property             | Type   | Description                                                                         | Example     |
| -------------------- | ------ | ----------------------------------------------------------------------------------- | ----------- |
| `type`               | string | The type of setting component to display.                                           | number      |
| `label`              | string | The user friendly message to inform the user how this setting will be used.         | "Font size" |
| `id`                 | string | The variable name where the setting value will be available in the widget template. | "fontSize"  |
| `default`            | object | The default value to use when rendering the widget for the first time.              |             |
| `default.value`      | string |                                                                                     | 24          |
| `default.type`       | string |                                                                                     | "px"        |
| `typeMeta`           | object | Additional information needed based on the selected setting type.                   |             |
| `typeMeta.parseType` | string | Supports two types: “integer” and “float”.                                          | integer     |